You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by va...@apache.org on 2007/07/23 00:42:28 UTC
svn commit: r558563 - in
/incubator/ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel:
compiler/WSDLRegistryTest.java compiler_2_0/GoodCompileTCase.java
Author: vanto
Date: Sun Jul 22 15:41:51 2007
New Revision: 558563
URL: http://svn.apache.org/viewvc?view=rev&rev=558563
Log:
Fixing test problems caused by spaces in path names.
Modified:
incubator/ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/WSDLRegistryTest.java
incubator/ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler_2_0/GoodCompileTCase.java
Modified: incubator/ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/WSDLRegistryTest.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/WSDLRegistryTest.java?view=diff&rev=558563&r1=558562&r2=558563
==============================================================================
--- incubator/ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/WSDLRegistryTest.java (original)
+++ incubator/ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler/WSDLRegistryTest.java Sun Jul 22 15:41:51 2007
@@ -19,6 +19,7 @@
package org.apache.ode.bpel.compiler;
import java.io.File;
+import java.net.URI;
import java.net.URL;
import javax.wsdl.xml.WSDLReader;
@@ -68,7 +69,9 @@
// load & register wsdl
WSDLFactory4BPEL factory = (WSDLFactory4BPEL)WSDLFactoryBPEL11.newInstance();
WSDLReader reader = factory.newWSDLReader();
- ResourceFinder finder = new DefaultResourceFinder(new File(wsd.getPath()).getParentFile());
+
+ //ResourceFinder finder = new DefaultResourceFinder(new File(wsd.getPath()).getParentFile());
+ ResourceFinder finder = new DefaultResourceFinder(new File(wsd.toURI().getPath()).getParentFile());
WSDLLocatorImpl loc = new WSDLLocatorImpl(finder,wsd.toURI());
Definition4BPEL wsdl = (Definition4BPEL) reader.readWSDL(loc);
_registry.addDefinition(wsdl, finder, wsd.toURI());
Modified: incubator/ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler_2_0/GoodCompileTCase.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler_2_0/GoodCompileTCase.java?view=diff&rev=558563&r1=558562&r2=558563
==============================================================================
--- incubator/ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler_2_0/GoodCompileTCase.java (original)
+++ incubator/ode/trunk/bpel-compiler/src/test/java/org/apache/ode/bpel/compiler_2_0/GoodCompileTCase.java Sun Jul 22 15:41:51 2007
@@ -42,11 +42,12 @@
protected final Log __log = LogFactory.getLog(getClass());
private BpelC _compiler;
private ArrayList<CompilationMessage> _errors = new ArrayList<CompilationMessage>();
- private File _bpel;
+ private String _bpel;
+
GoodCompileTCase(String bpel) {
super(bpel);
- _bpel = new File(getClass().getResource(bpel).getPath());
+ _bpel = bpel;
}
protected void setUp() throws Exception {
@@ -59,7 +60,8 @@
public void runTest() throws Exception {
try {
- _compiler.compile(_bpel);
+ File bpelFile = new File(getClass().getResource(_bpel).toURI().getPath());
+ _compiler.compile(bpelFile);
} catch (Exception ex) {
ex.printStackTrace();
fail("Compilation did not succeed.");