You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2007/11/14 22:24:38 UTC
svn commit: r595068 -
/incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/JAXWSDefinitionBuilderTest.java
Author: dkulp
Date: Wed Nov 14 13:24:38 2007
New Revision: 595068
URL: http://svn.apache.org/viewvc?rev=595068&view=rev
Log:
Fix potential test issue that relied on a specific classpath ordering that seems to fail in maven 2.0.8-SNAPSHOTS
Modified:
incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/JAXWSDefinitionBuilderTest.java
Modified: incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/JAXWSDefinitionBuilderTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/JAXWSDefinitionBuilderTest.java?rev=595068&r1=595067&r2=595068&view=diff
==============================================================================
--- incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/JAXWSDefinitionBuilderTest.java (original)
+++ incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/test/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/wsdl11/JAXWSDefinitionBuilderTest.java Wed Nov 14 13:24:38 2007
@@ -19,6 +19,7 @@
package org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11;
+import java.io.File;
import java.util.Iterator;
import java.util.List;
import javax.wsdl.Definition;
@@ -134,11 +135,13 @@
// tests the error case described in JIRA CXF-556
@Test
- public void testCustomizationWhereURINotAnExactStringMatch() {
+ public void testCustomizationWhereURINotAnExactStringMatch() throws Exception {
// set up a URI with ./../wsdl11/hello_world.wsdl instead of
// ./hello_world.wsdl
+
env.put(ToolConstants.CFG_WSDLURL,
- getClass().getResource(".").toString() + "../wsdl11/resources/hello_world.wsdl");
+ new File(getClass().getResource("JAXWSDefinitionBuilderTest.class").toURI())
+ .getParentFile().getParent() + "/wsdl11/resources/hello_world.wsdl");
env.put(ToolConstants.CFG_BINDING,
getClass().getResource("resources/cxf556_binding.xml").toString());