commit
a12e3d4594
|
@ -198,10 +198,8 @@ public class GradleBuild {
|
||||||
if (this.expectDeprecationWarnings == null || (this.gradleVersion != null
|
if (this.expectDeprecationWarnings == null || (this.gradleVersion != null
|
||||||
&& this.expectDeprecationWarnings.compareTo(GradleVersion.version(this.gradleVersion)) > 0)) {
|
&& this.expectDeprecationWarnings.compareTo(GradleVersion.version(this.gradleVersion)) > 0)) {
|
||||||
String buildOutput = result.getOutput();
|
String buildOutput = result.getOutput();
|
||||||
if (this.expectedDeprecationMessages != null) {
|
for (String message : this.expectedDeprecationMessages) {
|
||||||
for (String message : this.expectedDeprecationMessages) {
|
buildOutput = buildOutput.replaceAll(message, "");
|
||||||
buildOutput = buildOutput.replaceAll(message, "");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
assertThat(buildOutput).doesNotContainIgnoringCase("deprecated");
|
assertThat(buildOutput).doesNotContainIgnoringCase("deprecated");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue