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.StringReader;
|
||||
import java.net.MalformedURLException;
|
||||
|
||||
import org.apache.tuscany.sca.node.Contribution;
|
||||
import org.apache.tuscany.sca.node.Node;
|
||||
|
@ -61,11 +62,12 @@ public class NodeImplTestCase {
|
|||
testNode(node);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Test
|
||||
public void testNodeWithAbsoluteCompositeURI() {
|
||||
public void testNodeWithAbsoluteCompositeURI() throws MalformedURLException {
|
||||
NodeFactory factory = new NodeFactoryImpl();
|
||||
Contribution contribution = new Contribution("c1", new File("target/test-classes").toURI().toString());
|
||||
String compositeURI = new File("target/test-classes/HelloWorld.composite").toURI().toString();
|
||||
Contribution contribution = new Contribution("c1", new File("target/test-classes").toURL().toString());
|
||||
String compositeURI = new File("target/test-classes/HelloWorld.composite").toURL().toString();
|
||||
Node node = factory.createNode(compositeURI, contribution);
|
||||
testNode(node);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue