This commit is contained in:
Stephane Nicoll 2020-03-28 09:33:06 +01:00
parent 9f7ca9b930
commit f74f281951

View File

@ -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