From 984394a3e1a05cb567f485e23b7c2b8ccc15b56e Mon Sep 17 00:00:00 2001 From: rfeng Date: Thu, 29 Jan 2009 22:58:48 +0000 Subject: Fix the test case git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@739066 13f79535-47bb-0310-9956-ffa450edef68 --- .../itests/mtom/FileTransferMTOMTestCase.java | 25 +++++++++++----------- 1 file 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() } -- cgit v1.2.3