Minor: do not print output in assertion message
This commit is contained in:
+2
-2
@@ -127,14 +127,14 @@ abstract class BaseGradleIT {
|
|||||||
|
|
||||||
fun CompiledProject.assertContains(vararg expected: String): CompiledProject {
|
fun CompiledProject.assertContains(vararg expected: String): CompiledProject {
|
||||||
for (str in expected) {
|
for (str in expected) {
|
||||||
assertTrue(output.contains(str.normalize()), "Should contain '$str', actual output: $output")
|
assertTrue(output.contains(str.normalize()), "Output should contain '$str'")
|
||||||
}
|
}
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
fun CompiledProject.assertNotContains(vararg expected: String): CompiledProject {
|
fun CompiledProject.assertNotContains(vararg expected: String): CompiledProject {
|
||||||
for (str in expected) {
|
for (str in expected) {
|
||||||
assertFalse(output.contains(str.normalize()), "Should not contain '$str', actual output: $output")
|
assertFalse(output.contains(str.normalize()), "Output should not contain '$str'")
|
||||||
}
|
}
|
||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user