TUSCANY-3015, fix testcase so it works when run in diarectory that contains a space in its name
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@783763 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b23f094590
commit
d00a20eefe
1 changed files with 5 additions and 3 deletions
|
@ -23,6 +23,7 @@ import hello.HelloWorld;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.StringReader;
|
import java.io.StringReader;
|
||||||
|
import java.net.MalformedURLException;
|
||||||
|
|
||||||
import org.apache.tuscany.sca.node.Contribution;
|
import org.apache.tuscany.sca.node.Contribution;
|
||||||
import org.apache.tuscany.sca.node.Node;
|
import org.apache.tuscany.sca.node.Node;
|
||||||
|
@ -61,11 +62,12 @@ public class NodeImplTestCase {
|
||||||
testNode(node);
|
testNode(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
@Test
|
@Test
|
||||||
public void testNodeWithAbsoluteCompositeURI() {
|
public void testNodeWithAbsoluteCompositeURI() throws MalformedURLException {
|
||||||
NodeFactory factory = new NodeFactoryImpl();
|
NodeFactory factory = new NodeFactoryImpl();
|
||||||
Contribution contribution = new Contribution("c1", new File("target/test-classes").toURI().toString());
|
Contribution contribution = new Contribution("c1", new File("target/test-classes").toURL().toString());
|
||||||
String compositeURI = new File("target/test-classes/HelloWorld.composite").toURI().toString();
|
String compositeURI = new File("target/test-classes/HelloWorld.composite").toURL().toString();
|
||||||
Node node = factory.createNode(compositeURI, contribution);
|
Node node = factory.createNode(compositeURI, contribution);
|
||||||
testNode(node);
|
testNode(node);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue