mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Polish
See gh-25798
This commit is contained in:
parent
ece845a4e0
commit
b3af6d6403
@ -157,14 +157,14 @@ class JavaPluginActionIntegrationTests {
|
|||||||
|
|
||||||
@TestTemplate
|
@TestTemplate
|
||||||
void productionRuntimeClasspathIsConfiguredWithResolvabilityAndConsumabilityThatMatchesRuntimeClasspath() {
|
void productionRuntimeClasspathIsConfiguredWithResolvabilityAndConsumabilityThatMatchesRuntimeClasspath() {
|
||||||
String productionRuntime = this.gradleBuild.build("configurationResolvabilityAndConsumability",
|
|
||||||
"-PconfigurationName=runtimeClasspath", "-PapplyJavaPlugin").getOutput();
|
|
||||||
assertThat(productionRuntime).contains("canBeResolved: true");
|
|
||||||
assertThat(productionRuntime).contains("canBeConsumed: false");
|
|
||||||
String runtime = this.gradleBuild.build("configurationResolvabilityAndConsumability",
|
String runtime = this.gradleBuild.build("configurationResolvabilityAndConsumability",
|
||||||
"-PconfigurationName=productionRuntimeClasspath", "-PapplyJavaPlugin").getOutput();
|
"-PconfigurationName=runtimeClasspath", "-PapplyJavaPlugin").getOutput();
|
||||||
assertThat(runtime).contains("canBeResolved: true");
|
assertThat(runtime).contains("canBeResolved: true");
|
||||||
assertThat(runtime).contains("canBeConsumed: false");
|
assertThat(runtime).contains("canBeConsumed: false");
|
||||||
|
String productionRuntime = this.gradleBuild.build("configurationResolvabilityAndConsumability",
|
||||||
|
"-PconfigurationName=productionRuntimeClasspath", "-PapplyJavaPlugin").getOutput();
|
||||||
|
assertThat(productionRuntime).contains("canBeResolved: true");
|
||||||
|
assertThat(productionRuntime).contains("canBeConsumed: false");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createMinimalMainSource() throws IOException {
|
private void createMinimalMainSource() throws IOException {
|
||||||
|
Loading…
Reference in New Issue
Block a user