You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2009/02/04 05:07:26 UTC

svn commit: r740597 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java

Author: bodewig
Date: Wed Feb  4 04:07:25 2009
New Revision: 740597

URL: http://svn.apache.org/viewvc?rev=740597&view=rev
Log:
indentation changes only

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java?rev=740597&r1=740596&r2=740597&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java (original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java Wed Feb  4 04:07:25 2009
@@ -71,33 +71,33 @@
         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 {