harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r549532 - in /harmony/enhanced/classlib/trunk/modules/prefs/src/test: java/org/apache/harmony/prefs/tests/java/util/prefs/AbstractPreferencesTest.java resources/prefs/java/util/prefs/preferences.dtd
Date Thu, 21 Jun 2007 16:26:33 GMT
Author: tellison
Date: Thu Jun 21 09:26:30 2007
New Revision: 549532

URL: http://svn.apache.org/viewvc?view=rev&rev=549532
Log:
Remove preferences.dtd, and it's reference from the test case, since it should not be in our
repository.

Removed:
    harmony/enhanced/classlib/trunk/modules/prefs/src/test/resources/prefs/java/util/prefs/preferences.dtd
Modified:
    harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/AbstractPreferencesTest.java

Modified: harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/AbstractPreferencesTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/AbstractPreferencesTest.java?view=diff&rev=549532&r1=549531&r2=549532
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/AbstractPreferencesTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/AbstractPreferencesTest.java
Thu Jun 21 09:26:30 2007
@@ -1049,19 +1049,6 @@
 
 		// Create the builder and parse the file
 		DocumentBuilder builder = factory.newDocumentBuilder();
-		builder.setEntityResolver(new EntityResolver() {
-			public InputSource resolveEntity(String publicId, String systemId)
-					throws SAXException, IOException {
-				if (systemId.equals("http://java.sun.com/dtd/preferences.dtd")) {
-					InputSource result = new InputSource(
-							AbstractPreferencesTest.class
-									.getResourceAsStream("/prefs/java/util/prefs/preferences.dtd"));
-					result.setSystemId("preferences.dtd");
-					return result;
-				}
-				throw new SAXException("Invalid DOCTYPE:" + systemId);
-			}
-		});
 		Document doc = builder.parse(input);
 		return doc;
 	}



Mime
View raw message