@@ -49,7 +49,7 @@ void shouldPopulateLibraries() throws IOException {
49
49
MavenBuild build = MavenBuild .create (projectPom )
50
50
.setGoals (cleanPackageSonarGoal ())
51
51
.setProperty ("sonar.scanner.internal.dumpToFile" , outputProps .getAbsolutePath ());
52
- executeBuildAndValidateWithoutCE (build );
52
+ executeBuildAndAssertWithoutCE (build );
53
53
54
54
Properties generatedProps = getProps (outputProps );
55
55
String [] moduleIds = generatedProps .getProperty ("sonar.modules" ).split ("," );
@@ -76,7 +76,7 @@ void read_default_from_plugins_config() throws Exception {
76
76
MavenBuild build = MavenBuild .create (pom )
77
77
.setGoals (cleanPackageSonarGoal ())
78
78
.setProperty ("sonar.scanner.internal.dumpToFile" , outputProps .getAbsolutePath ());
79
- executeBuildAndValidateWithoutCE (build );
79
+ executeBuildAndAssertWithoutCE (build );
80
80
81
81
Properties props = getProps (outputProps );
82
82
assertThat (props ).contains (
@@ -95,7 +95,7 @@ void setJavaVersionCompilerConfiguration() throws IOException {
95
95
MavenBuild build = MavenBuild .create (pom )
96
96
.setGoals (cleanPackageSonarGoal ())
97
97
.setProperty ("sonar.scanner.internal.dumpToFile" , outputProps .getAbsolutePath ());
98
- executeBuildAndValidateWithoutCE (build );
98
+ executeBuildAndAssertWithoutCE (build );
99
99
100
100
Properties props = getProps (outputProps );
101
101
assertThat (props ).contains (
@@ -112,7 +112,7 @@ void setJavaVersionProperties() throws IOException {
112
112
MavenBuild build = MavenBuild .create (pom )
113
113
.setGoals (cleanPackageSonarGoal ())
114
114
.setProperty ("sonar.scanner.internal.dumpToFile" , outputProps .getAbsolutePath ());
115
- executeBuildAndValidateWithoutCE (build );
115
+ executeBuildAndAssertWithoutCE (build );
116
116
117
117
Properties props = getProps (outputProps );
118
118
assertThat (props ).contains (
@@ -132,7 +132,7 @@ void when_java_home_exists_it_is_used_as_default_sonar_java_jdkHome_value() thro
132
132
MavenBuild build = MavenBuild .create (pom )
133
133
.setGoals (sonarGoal ())
134
134
.setProperty ("sonar.scanner.internal.dumpToFile" , outputProps .getAbsolutePath ());
135
- executeBuildAndValidateWithoutCE (build );
135
+ executeBuildAndAssertWithoutCE (build );
136
136
137
137
Properties props = getProps (outputProps );
138
138
String jdkHome = props .getProperty ("sonar.java.jdkHome" );
@@ -149,7 +149,7 @@ void setJdkHomeFromCompilerExecutableConfiguration() throws IOException {
149
149
MavenBuild build = MavenBuild .create (pom )
150
150
.setGoals (sonarGoal ())
151
151
.setProperty ("sonar.scanner.internal.dumpToFile" , outputProps .getAbsolutePath ());
152
- executeBuildAndValidateWithoutCE (build );
152
+ executeBuildAndAssertWithoutCE (build );
153
153
154
154
Properties props = getProps (outputProps );
155
155
String expected = "path/to/java_executable" .replace ('/' , File .separatorChar );
@@ -168,7 +168,7 @@ void setJdkHomeFromGlobalToolchainsPlugin() throws IOException {
168
168
.setGoals ("toolchains:toolchain " + sonarGoal ())
169
169
.addArguments ("--toolchains" , new File (pom .getParent (), "toolchains.xml" ).getAbsolutePath ())
170
170
.setProperty ("sonar.scanner.internal.dumpToFile" , outputProps .getAbsolutePath ());
171
- executeBuildAndValidateWithoutCE (build );
171
+ executeBuildAndAssertWithoutCE (build );
172
172
173
173
Properties props = getProps (outputProps );
174
174
assertThat (props ).contains (entry ("sonar.java.jdkHome" , "fake_jdk_1.5" ));
@@ -188,7 +188,7 @@ void setJdkHomeFromCompilerToolchainsConfiguration() throws IOException {
188
188
.setGoals (sonarGoal ())
189
189
.addArguments ("--toolchains" , new File (pom .getParent (), "toolchains.xml" ).getAbsolutePath ())
190
190
.setProperty ("sonar.scanner.internal.dumpToFile" , outputProps .getAbsolutePath ());
191
- executeBuildAndValidateWithoutCE (build );
191
+ executeBuildAndAssertWithoutCE (build );
192
192
193
193
Properties props = getProps (outputProps );
194
194
assertThat (props ).contains (entry ("sonar.java.jdkHome" , "fake_jdk_1.6" ));
@@ -208,7 +208,7 @@ void takeFirstToolchainIfMultipleExecutions() throws IOException {
208
208
.setGoals (sonarGoal ())
209
209
.addArguments ("--toolchains" , new File (pom .getParent (), "toolchains.xml" ).getAbsolutePath ())
210
210
.setProperty ("sonar.scanner.internal.dumpToFile" , outputProps .getAbsolutePath ());
211
- executeBuildAndValidateWithoutCE (build );
211
+ executeBuildAndAssertWithoutCE (build );
212
212
213
213
Properties props = getProps (outputProps );
214
214
assertThat (props ).contains (entry ("sonar.java.jdkHome" , "fake_jdk_9" ));
0 commit comments