Browse Source

indentation changes only

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@740597 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
b27fa7d06f
1 changed files with 27 additions and 27 deletions
  1. +27
    -27
      src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java

+ 27
- 27
src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java View File

@@ -71,33 +71,33 @@ public class XMLCatalogTest extends TestCase {
catalog = newCatalog();
}

public void tearDown() {
project = null;
catalog = null;
}
public void testEmptyCatalog() {
try {
InputSource result = catalog.resolveEntity("PUBLIC ID ONE",
"i/dont/exist.dtd");
assertNull("Empty catalog should return null", result);
} catch (Exception e) {
fail("resolveEntity() failed!" + e.toString());
}
try {
Source result = catalog.resolve("i/dont/exist.dtd", null);
String expected = toURLString(new File(project.getBaseDir() +
"/i/dont/exist.dtd"));
String resultStr =
fileURLPartWithoutLeadingSlashes((SAXSource)result);
assertTrue("Empty catalog should return input with a system ID like "
+ expected + " but was " + resultStr,
expected.endsWith(resultStr));
} catch (Exception e) {
fail("resolve() failed!" + e.toString());
}
}
public void tearDown() {
project = null;
catalog = null;
}
public void testEmptyCatalog() {
try {
InputSource result = catalog.resolveEntity("PUBLIC ID ONE",
"i/dont/exist.dtd");
assertNull("Empty catalog should return null", result);
} catch (Exception e) {
fail("resolveEntity() failed!" + e.toString());
}
try {
Source result = catalog.resolve("i/dont/exist.dtd", null);
String expected = toURLString(new File(project.getBaseDir() +
"/i/dont/exist.dtd"));
String resultStr =
fileURLPartWithoutLeadingSlashes((SAXSource)result);
assertTrue("Empty catalog should return input with a system ID like "
+ expected + " but was " + resultStr,
expected.endsWith(resultStr));
} catch (Exception e) {
fail("resolve() failed!" + e.toString());
}
}

private static String fileURLPartWithoutLeadingSlashes(SAXSource result)
throws MalformedURLException {


Loading…
Cancel
Save