Author: ningjiang
Date: Mon Oct 2 19:44:28 2006
New Revision: 452299
URL: http://svn.apache.org/viewvc?view=rev&rev=452299
Log:
[CXF-142] fixed JCA tests fail on OS X ; Updated the example's commo_build.xml
Modified:
incubator/cxf/trunk/distribution/src/main/release/samples/common_build.xml
incubator/cxf/trunk/jca/src/test/java/org/apache/cxf/jca/cxf/JCABusFactoryTest.java
Modified: incubator/cxf/trunk/distribution/src/main/release/samples/common_build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/common_build.xml?view=diff&rev=452299&r1=452298&r2=452299
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/common_build.xml (original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/common_build.xml Mon Oct 2
19:44:28 2006
@@ -78,6 +78,7 @@
</path>
<path id="cxf.classpath">
+ <pathelement location="${basedir}"/>
<pathelement location="${build.classes.dir}"/>
<pathelement path="${srcbuild.classpath}"/>
<pathelement location="${cxf.home}/lib/cxf-incubator.jar"/>
Modified: incubator/cxf/trunk/jca/src/test/java/org/apache/cxf/jca/cxf/JCABusFactoryTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/jca/src/test/java/org/apache/cxf/jca/cxf/JCABusFactoryTest.java?view=diff&rev=452299&r1=452298&r2=452299
==============================================================================
--- incubator/cxf/trunk/jca/src/test/java/org/apache/cxf/jca/cxf/JCABusFactoryTest.java (original)
+++ incubator/cxf/trunk/jca/src/test/java/org/apache/cxf/jca/cxf/JCABusFactoryTest.java Mon
Oct 2 19:44:28 2006
@@ -412,10 +412,14 @@
fail("expect ex on invalid url, dud host name");
} catch (ResourceException expected) {
- assertTrue("have a uhe " + expected.getCause(),
- expected.getCause() instanceof java.net.UnknownHostException);
- }
+ // resolving the URL above results in an IOException which
+ // may be UnknowHostException or something different
+ // depending on the platoform
+ assertTrue("unexpected exception received: " + expected.getCause(),
+ expected.getCause() instanceof java.io.IOException);
+ }
+
}
|