ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r740597 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/types/XMLCatalogTest.java
Date Wed, 04 Feb 2009 04:07:26 GMT
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 {



Mime
View raw message