summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/binding-ws-axis2/src
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-01-29 22:58:48 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-01-29 22:58:48 +0000
commit984394a3e1a05cb567f485e23b7c2b8ccc15b56e (patch)
tree5841f3f28ce598c4a2299a0940d24e7f819fffe7 /java/sca/modules/binding-ws-axis2/src
parent0c0d804be0482f70bb393ee0837d21d062560fc9 (diff)
Fix the test case
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@739066 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/binding-ws-axis2/src')
-rw-r--r--java/sca/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferMTOMTestCase.java25
1 files changed, 12 insertions, 13 deletions
diff --git a/java/sca/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferMTOMTestCase.java b/java/sca/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferMTOMTestCase.java
index d551560ff9..0155c75883 100644
--- a/java/sca/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferMTOMTestCase.java
+++ b/java/sca/modules/binding-ws-axis2/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/FileTransferMTOMTestCase.java
@@ -21,9 +21,9 @@ package org.apache.tuscany.sca.binding.ws.axis2.itests.mtom;
import javax.activation.DataHandler;
import javax.activation.FileDataSource;
+
import junit.framework.TestCase;
-import org.apache.tuscany.sca.binding.ws.axis2.itests.mtom.FileTransferService;
-// Added imports to new Node / Launcher framework
+
import org.apache.tuscany.sca.node.Node;
import org.apache.tuscany.sca.node.equinox.launcher.Contribution;
import org.apache.tuscany.sca.node.equinox.launcher.ContributionLocationHelper;
@@ -53,13 +53,12 @@ public class FileTransferMTOMTestCase extends TestCase {
@Override
protected void setUp() throws Exception {
// domain = SCADomain.newInstance("org/apache/tuscany/sca/binding/ws/axis2/itests/mtom/filetransferservice.composite");
- // Tuscany specific code which starts the contribution holding the test
- launcher = NodeLauncher.newInstance();
- node = launcher.createNode( "filetransferservice.composite", // testConfiguration.getComposite(),
- new Contribution("FileTransferMTOMTestCase",
- getContributionURI()));
+ // Tuscany specific code which starts the contribution holding the test
+ launcher = NodeLauncher.newInstance(null);
+ node = launcher.createNode("filetransferservice.composite", // testConfiguration.getComposite(),
+ new Contribution("FileTransferMTOMTestCase", getContributionURI()));
}
-
+
@Override
protected void tearDown() throws Exception {
//domain.close();
@@ -71,12 +70,12 @@ public class FileTransferMTOMTestCase extends TestCase {
launcher.destroy();
}
}
-
+
protected String getContributionURI() {
- Class<?> clazz = getClass();
- String location = ContributionLocationHelper.getContributionLocation(clazz);
- return location;
-
+ Class<?> clazz = getClass();
+ String location = ContributionLocationHelper.getContributionLocation(clazz);
+ return location;
+
} // end getContributionURI()
}