Browse Source

Make JDK 1.4 happy by changing assert to assertTrue.

TraxLiaisonTest accesses the protected TraXLiaison.getSystemId method
and therefore has to be loaded via the same classloader as TraxLiaison.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271369 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 23 years ago
parent
commit
3094ca2c8f
2 changed files with 4 additions and 2 deletions
  1. +2
    -0
      build.xml
  2. +2
    -2
      src/testcases/org/apache/tools/ant/taskdefs/optional/TraXLiaisonTest.java

+ 2
- 0
build.xml View File

@@ -988,6 +988,8 @@
unless="tests.and.ant.share.classloader" />
<exclude name="${optional.package}/sos/SOSTest.java"
unless="tests.and.ant.share.classloader" />
<exclude name="${optional.package}/TraXLiaisonTest.java"
unless="tests.and.ant.share.classloader" />

<!-- failure of this test case kills the current JVM
so until the defect is actually fixed it is taken


+ 2
- 2
src/testcases/org/apache/tools/ant/taskdefs/optional/TraXLiaisonTest.java View File

@@ -120,8 +120,8 @@ public class TraXLiaisonTest extends AbstractXSLTLiaisonTest {
file = new File("/user/local/bin");
}
String systemid = ((TraXLiaison)liaison).getSystemId(file);
assert("SystemIDs should start by file:///", systemid.startsWith("file:///"));
assert("SystemIDs should not start with file:////", !systemid.startsWith("file:////"));
assertTrue("SystemIDs should start by file:///", systemid.startsWith("file:///"));
assertTrue("SystemIDs should not start with file:////", !systemid.startsWith("file:////"));
}

}

Loading…
Cancel
Save