Browse Source

the assertion used to be conditional

master
Stefan Bodewig 7 years ago
parent
commit
97ac9bc7c0
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/tests/junit/org/apache/tools/ant/types/RedirectorElementTest.java

+ 3
- 2
src/tests/junit/org/apache/tools/ant/types/RedirectorElementTest.java View File

@@ -75,8 +75,9 @@ public class RedirectorElementTest {
@Test
public void testLogInputString() {
buildRule.executeTarget("testLogInputString");
assertThat(buildRule.getFullLog(), both(containsString("testLogInputString can-cat"))
.and(containsString("Using input string")));
if (buildRule.getLog().contains("testLogInputString can-cat")) {
assertThat(buildRule.getFullLog(), containsString("Using input string"));
}
}

@Test


Loading…
Cancel
Save