mirror of
https://gitee.com/dcren/initializr.git
synced 2025-07-16 07:59:42 +08:00
Polish
This commit is contained in:
parent
9f7ca9b930
commit
f74f281951
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2019 the original author or authors.
|
* Copyright 2012-2020 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -75,10 +75,9 @@ class KotlinProjectGenerationConfigurationTests {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void kotlinVersionResolverIsUsedIfPresent() {
|
void kotlinVersionResolverIsUsedIfPresent() {
|
||||||
this.projectTester.withBean(KotlinProjectSettings.class, () -> new SimpleKotlinProjectSettings("0.9.12"))
|
this.projectTester.withBean(KotlinVersionResolver.class, () -> (description) -> "0.9.12").configure(
|
||||||
.configure(new MutableProjectDescription(),
|
new MutableProjectDescription(),
|
||||||
(context) -> assertThat(context.getBean(KotlinProjectSettings.class).getVersion())
|
(context) -> assertThat(context.getBean(KotlinProjectSettings.class).getVersion()).isEqualTo("0.9.12"));
|
||||||
.isEqualTo("0.9.12"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user