[
http://issues.apache.org/jira/browse/HIVEMIND-127?page=comments#action_12313145
]
Eric Yung commented on HIVEMIND-127:
------------------------------------
Here is the patch against 1.7 to fix:
--- TestXmlResourceProcessor.java 26 May 2005 03:08:39 -0000 1.7
+++ TestXmlResourceProcessor.java 9 Jun 2005 10:11:05 -0000
@@ -16,7 +16,8 @@
import hivemind.test.FrameworkTestCase;
-import java.net.ConnectException;
+import java.io.FileNotFoundException;
+
import java.net.URL;
import org.apache.hivemind.ApplicationRuntimeException;
@@ -33,9 +34,9 @@
new DefaultErrorHandler());
Resource[] missingResources = new Resource[]
- { new FileResource("foo"), new URLResource(new
URL("file://MissingFile")) };
+ { new FileResource("foo"), new URLResource(new
URL("file:/MissingFile")) };
Class[] exceptionTypes = new Class[]
- { NullPointerException.class, ConnectException.class };
+ { NullPointerException.class, FileNotFoundException.class };
for (int i = 0; i < missingResources.length; i++)
{
@@ -53,4 +54,4 @@
}
}
}
-}
\ No newline at end of file
+}
> Testcase TestXmlResourceProcessor failed under J2SE 1.4.2
> ---------------------------------------------------------
>
> Key: HIVEMIND-127
> URL: http://issues.apache.org/jira/browse/HIVEMIND-127
> Project: HiveMind
> Type: Bug
> Components: framework
> Versions: 1.1
> Environment: J2SE 1.4.2
> Reporter: Eric Yung
> Priority: Minor
>
> The testcase TestXmlResourceProcessor failed with the following output:
> [junit] Testcase:
> testMissingURLResource(org.apache.hivemind.parse.TestXmlResourceProcessor):
> FAILED
> [junit] expected:<class java.net.ConnectException> but was:<class
> java.net.UnknownHostException>
> [junit] junit.framework.AssertionFailedError: expected:<class
> java.net.ConnectException> but was:<class java.net.UnknownHostException>
> [junit] at
> org.apache.hivemind.parse.TestXmlResourceProcessor.testMissingURLResource(TestXmlResourceProcessor.java:53)
> [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [junit] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [junit] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]