Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0033_TestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0033_TestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0033_TestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0033_TestCase.java Thu Mar 5 06:03:09 2009 @@ -18,7 +18,6 @@ */ package client; - import test.ASM_0002_Client; import testClient.TestInvocation; @@ -30,17 +29,17 @@ */ public class ASM_0033_TestCase extends BaseJAXWSTestCase { - protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_0033"; - config.input = "request"; - config.output = "ASM_0033 request service1 operation1 invoked service2 operation1 invokedservice2 operation1 invoked"; - config.composite = "Test_ASM_0033.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0002_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_0033"; + config.input = "request"; + config.output = + "ASM_0033 request service1 operation1 invoked service2 operation1 invokedservice2 operation1 invoked"; + config.composite = "Test_ASM_0033.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class Test_ASM_0032
Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0034_TestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0034_TestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0034_TestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_0034_TestCase.java Thu Mar 5 06:03:09 2009 @@ -18,7 +18,6 @@ */ package client; - import test.ASM_0002_Client; import testClient.TestInvocation; @@ -29,17 +28,17 @@ */ public class ASM_0034_TestCase extends BaseJAXWSTestCase { - protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_0034"; - config.input = "request"; - config.output = "ASM_0034 request service1 operation1 invoked service2 operation1 invokedservice2 operation1 invoked"; - config.composite = "Test_ASM_0034.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0002_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_0034"; + config.input = "request"; + config.output = + "ASM_0034 request service1 operation1 invoked service2 operation1 invokedservice2 operation1 invoked"; + config.composite = "Test_ASM_0034.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class Test_ASM_0034 Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6001_TestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6001_TestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6001_TestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6001_TestCase.java Thu Mar 5 06:03:09 2009 @@ -18,7 +18,6 @@ */ package client; - import test.ASM_0002_Client; import testClient.TestInvocation; @@ -30,17 +29,16 @@ */ public class ASM_6001_TestCase extends BaseJAXWSTestCase { - protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_6001"; - config.input = "request"; - config.output = "exception"; - config.composite = "Test_ASM_6001.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0002_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_6001"; + config.input = "request"; + config.output = "exception"; + config.composite = "Test_ASM_6001.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class Test_ASM_6001 Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6002_TestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6002_TestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6002_TestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6002_TestCase.java Thu Mar 5 06:03:09 2009 @@ -18,7 +18,6 @@ */ package client; - import test.ASM_0002_Client; import testClient.TestInvocation; @@ -29,17 +28,16 @@ */ public class ASM_6002_TestCase extends BaseJAXWSTestCase { - protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_6002"; - config.input = "request"; - config.output = "exception"; - config.composite = "Test_ASM_6002.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0002_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_6002"; + config.input = "request"; + config.output = "exception"; + config.composite = "Test_ASM_6002.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class Test_ASM_6002 Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6003_TestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6003_TestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6003_TestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6003_TestCase.java Thu Mar 5 06:03:09 2009 @@ -18,7 +18,6 @@ */ package client; - import test.ASM_0002_Client; import testClient.TestInvocation; @@ -29,17 +28,16 @@ */ public class ASM_6003_TestCase extends BaseJAXWSTestCase { - protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_6003"; - config.input = "request"; - config.output = "exception"; - config.composite = "Test_ASM_6003.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0002_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_6003"; + config.input = "request"; + config.output = "exception"; + config.composite = "Test_ASM_6003.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class Test_ASM_6003 Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6004_TestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6004_TestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6004_TestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6004_TestCase.java Thu Mar 5 06:03:09 2009 @@ -18,7 +18,6 @@ */ package client; - import test.ASM_0002_Client; import testClient.TestInvocation; @@ -30,17 +29,16 @@ */ public class ASM_6004_TestCase extends BaseJAXWSTestCase { - protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_6004"; - config.input = "request"; - config.output = "ASM_6004 request service1 operation1 invoked"; - config.composite = "Test_ASM_6004.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0002_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_6004"; + config.input = "request"; + config.output = "ASM_6004 request service1 operation1 invoked"; + config.composite = "Test_ASM_6004.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class Test_ASM_6004 Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6005_TestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6005_TestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6005_TestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6005_TestCase.java Thu Mar 5 06:03:09 2009 @@ -18,7 +18,6 @@ */ package client; - import test.ASM_0002_Client; import testClient.TestInvocation; @@ -29,17 +28,16 @@ */ public class ASM_6005_TestCase extends BaseJAXWSTestCase { - protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_6005"; - config.input = "request"; - config.output = "exception"; - config.composite = "Test_ASM_6005.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0002_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_6005"; + config.input = "request"; + config.output = "exception"; + config.composite = "Test_ASM_6005.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class Test_ASM_6004 Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6006_TestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6006_TestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6006_TestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6006_TestCase.java Thu Mar 5 06:03:09 2009 @@ -18,7 +18,6 @@ */ package client; - import test.ASM_0002_Client; import testClient.TestInvocation; @@ -29,17 +28,16 @@ */ public class ASM_6006_TestCase extends BaseJAXWSTestCase { - protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_6006"; - config.input = "request"; - config.output = "exception"; - config.composite = "Test_ASM_6006.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0002_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_6006"; + config.input = "request"; + config.output = "exception"; + config.composite = "Test_ASM_6006.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class Test_ASM_6004 Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6007_TestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6007_TestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6007_TestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6007_TestCase.java Thu Mar 5 06:03:09 2009 @@ -18,7 +18,6 @@ */ package client; - import test.ASM_0002_Client; import testClient.TestInvocation; @@ -29,17 +28,16 @@ */ public class ASM_6007_TestCase extends BaseJAXWSTestCase { - protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_6007"; - config.input = "request"; - config.output = "ASM_6007 request service1 operation1 invoked service2 operation1 invoked"; - config.composite = "Test_ASM_6007.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0002_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_6007"; + config.input = "request"; + config.output = "ASM_6007 request service1 operation1 invoked service2 operation1 invoked"; + config.composite = "Test_ASM_6007.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class Test_ASM_6007 Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6008_TestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6008_TestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6008_TestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6008_TestCase.java Thu Mar 5 06:03:09 2009 @@ -18,7 +18,6 @@ */ package client; - import test.ASM_0002_Client; import testClient.TestInvocation; @@ -30,17 +29,16 @@ */ public class ASM_6008_TestCase extends BaseJAXWSTestCase { - protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_6008"; - config.input = "request"; - config.output = "exception"; - config.composite = "Test_ASM_6008.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0002_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_6008"; + config.input = "request"; + config.output = "exception"; + config.composite = "Test_ASM_6008.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class Test_ASM_6008 Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6009_TestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6009_TestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6009_TestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6009_TestCase.java Thu Mar 5 06:03:09 2009 @@ -18,7 +18,6 @@ */ package client; - import test.ASM_0002_Client; import testClient.TestInvocation; @@ -29,17 +28,16 @@ */ public class ASM_6009_TestCase extends BaseJAXWSTestCase { - protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_6009"; - config.input = "request"; - config.output = "ASM_6009 request service1 operation1 invokedservice2 operation1 invoked"; - config.composite = "Test_ASM_6009.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0002_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_6009"; + config.input = "request"; + config.output = "ASM_6009 request service1 operation1 invokedservice2 operation1 invoked"; + config.composite = "Test_ASM_6009.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class Test_ASM_6009 Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6010_TestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6010_TestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6010_TestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6010_TestCase.java Thu Mar 5 06:03:09 2009 @@ -18,7 +18,6 @@ */ package client; - import test.ASM_0002_Client; import testClient.TestInvocation; @@ -29,17 +28,16 @@ */ public class ASM_6010_TestCase extends BaseJAXWSTestCase { - protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_6010"; - config.input = "request"; - config.output = "ASM_6010 request service1 operation1 invoked service2 operation1 invoked"; - config.composite = "Test_ASM_6010.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0002_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_6010"; + config.input = "request"; + config.output = "ASM_6010 request service1 operation1 invoked service2 operation1 invoked"; + config.composite = "Test_ASM_6010.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class Test_ASM_6010 Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6011_TestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6011_TestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6011_TestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6011_TestCase.java Thu Mar 5 06:03:09 2009 @@ -18,7 +18,6 @@ */ package client; - import test.ASM_0002_Client; import testClient.TestInvocation; @@ -29,17 +28,16 @@ */ public class ASM_6011_TestCase extends BaseJAXWSTestCase { - protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_6011"; - config.input = "request"; - config.output = "ASM_6011 request service1 operation1 invoked service2 operation1 invoked"; - config.composite = "Test_ASM_6011.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0002_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_6011"; + config.input = "request"; + config.output = "ASM_6011 request service1 operation1 invoked service2 operation1 invoked"; + config.composite = "Test_ASM_6011.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class Test_ASM_6009 Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6012_TestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6012_TestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6012_TestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6012_TestCase.java Thu Mar 5 06:03:09 2009 @@ -18,7 +18,6 @@ */ package client; - import test.ASM_0002_Client; import testClient.TestInvocation; @@ -29,17 +28,16 @@ */ public class ASM_6012_TestCase extends BaseJAXWSTestCase { - protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_6012"; - config.input = "request"; - config.output = "exception"; - config.composite = "Test_ASM_6012.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0002_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_6012"; + config.input = "request"; + config.output = "exception"; + config.composite = "Test_ASM_6012.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class Test_ASM_6012 Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6013_TestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6013_TestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6013_TestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/ASM_6013_TestCase.java Thu Mar 5 06:03:09 2009 @@ -18,7 +18,6 @@ */ package client; - import test.ASM_0002_Client; import testClient.TestInvocation; @@ -29,17 +28,16 @@ */ public class ASM_6013_TestCase extends BaseJAXWSTestCase { - protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_6013"; - config.input = "request"; - config.output = "ASM_6013 request service1 operation1 invoked third operation1 invoked"; - config.composite = "Test_ASM_6013.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0002_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_6013"; + config.input = "request"; + config.output = "ASM_6013 request service1 operation1 invoked third operation1 invoked"; + config.composite = "Test_ASM_6013.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0002_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class Test_ASM_6013 Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseJAXWSTestCase.java Thu Mar 5 06:03:09 2009 @@ -18,11 +18,13 @@ */ package client; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; -import java.net.MalformedURLException; import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.Service; + 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; @@ -31,13 +33,10 @@ import org.junit.Before; import org.junit.Test; -import javax.xml.ws.Service; -import javax.xml.namespace.QName; - import test.ASM_0001_Client; -import testClient.TestInvocation; -import testClient.TestException_Exception; import testClient.TestException; +import testClient.TestException_Exception; +import testClient.TestInvocation; /** * A generic test client based on JAX-WS APIs @@ -48,86 +47,88 @@ protected Node node; protected TestConfiguration testConfiguration = getTestConfiguration(); static boolean proceed = true; - + public static void main(String[] args) throws Exception { - BaseJAXWSTestCase test = new BaseJAXWSTestCase(); - test.setUp(); - test.tearDown(); + BaseJAXWSTestCase test = new BaseJAXWSTestCase(); + test.setUp(); + test.tearDown(); } - + @Before - public void setUp() throws Exception { - try { - startContribution(); - } catch (Exception e) { - // If the SCA runtime refuses to start an invalid contribution, then this is also - // regarded as a successful outcome - System.out.println( "Exception received - detail: " + e.getMessage() ); - assertEquals( testConfiguration.getExpectedOutput(), "exception" ); - System.out.println("Test " + testConfiguration.getTestName() + " completed successfully"); - // Mark this test as not to proceed further - proceed = false; - } // end try + public void setUp() throws Exception { + try { + startContribution(); + } catch (Exception e) { + // If the SCA runtime refuses to start an invalid contribution, then this is also + // regarded as a successful outcome + System.out.println("Exception received - detail: " + e.getMessage()); + assertEquals(testConfiguration.getExpectedOutput(), "exception"); + System.out.println("Test " + testConfiguration.getTestName() + " completed successfully"); + // Mark this test as not to proceed further + proceed = false; + } // end try } @After public void tearDown() throws Exception { - stopContribution(); + stopContribution(); } @Test public void testDummy() throws Exception { - // If an exception were thrown during initialization, let's go no further - if( proceed == false ) return; - - // System.out.println("Test " + testName + " starting"); - String output = null; - try { - output = invokeTest( testConfiguration.getInput() ); - - } catch ( TestException_Exception e ) { - TestException exceptionContent = e.getFaultInfo(); - System.out.println("Service fault received - detail: " + exceptionContent.getMessage() ); - assertEquals( testConfiguration.getExpectedOutput(), "exception" ); - System.out.println("Test " + testConfiguration.getTestName() + " completed successfully"); - return; - } catch (Throwable e) { - e.printStackTrace(); - System.out.println( "Exception received - detail: " + e.getMessage() ); - assertEquals( testConfiguration.getExpectedOutput(), "exception" ); - System.out.println("Test " + testConfiguration.getTestName() + " completed successfully"); - return; - } - assertEquals( testConfiguration.getExpectedOutput(), output ); - System.out.println("Test " + testConfiguration.getTestName() + " completed successfully"); - } - - public String invokeTest( String input ) throws Exception { - //Web service invocation via JAXWS - QName serviceName = new QName("http://test/", "TestInvocationService"); - URL wsdlLocation = this.getClass().getClassLoader().getResource("TestClient.wsdl"); - javax.xml.ws.Service webService = Service.create( wsdlLocation, serviceName ); - TestInvocation wsProxy = (TestInvocation) webService.getPort(testConfiguration.getServiceInterface()); + // If an exception were thrown during initialization, let's go no further + if (proceed == false) + return; + + // System.out.println("Test " + testName + " starting"); + String output = null; + try { + output = invokeTest(testConfiguration.getInput()); + + } catch (TestException_Exception e) { + TestException exceptionContent = e.getFaultInfo(); + System.out.println("Service fault received - detail: " + exceptionContent.getMessage()); + assertEquals(testConfiguration.getExpectedOutput(), "exception"); + System.out.println("Test " + testConfiguration.getTestName() + " completed successfully"); + return; + } catch (Throwable e) { + e.printStackTrace(); + System.out.println("Exception received - detail: " + e.getMessage()); + assertEquals(testConfiguration.getExpectedOutput(), "exception"); + System.out.println("Test " + testConfiguration.getTestName() + " completed successfully"); + return; + } + assertEquals(testConfiguration.getExpectedOutput(), output); + System.out.println("Test " + testConfiguration.getTestName() + " completed successfully"); + } - String output = wsProxy.invokeTest(input); + public String invokeTest(String input) throws Exception { + //Web service invocation via JAXWS + QName serviceName = new QName("http://test/", "TestInvocationService"); + URL wsdlLocation = this.getClass().getClassLoader().getResource("TestClient.wsdl"); + javax.xml.ws.Service webService = Service.create(wsdlLocation, serviceName); + TestInvocation wsProxy = (TestInvocation)webService.getPort(testConfiguration.getServiceInterface()); - return output; + String output = wsProxy.invokeTest(input); + + return output; } // end method invokeTest - - protected <T> T getService( Class<T> interfaze, String serviceName ) { - T service = node.getService( interfaze, serviceName ); - return service; + + protected <T> T getService(Class<T> interfaze, String serviceName) { + T service = node.getService(interfaze, serviceName); + return service; } // end getService - + protected void startContribution() throws Exception { - // Tuscany specific code which starts the contribution holding the test + // Tuscany specific code which starts the contribution holding the test launcher = NodeLauncher.newInstance(); - node = launcher.createNode(testConfiguration.getComposite(), - new Contribution(testConfiguration.getTestName(), getContributionURI())); + node = + launcher.createNode(testConfiguration.getComposite(), new Contribution(testConfiguration.getTestName(), + getContributionURI())); System.out.println("SCA Node API ClassLoader: " + node.getClass().getClassLoader()); node.start(); } // end method startContribution - + protected void stopContribution() throws Exception { if (node != null) { node.stop(); @@ -137,22 +138,22 @@ launcher.destroy(); } } // end method stopContribution - + protected String getContributionURI() { - String location = ContributionLocationHelper.getContributionLocation(testConfiguration.getTestClass()); - return location; + String location = ContributionLocationHelper.getContributionLocation(testConfiguration.getTestClass()); + return location; } - + protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_0001"; - config.input = "request"; - config.output = config.testName + " " + config.input + " invoked ok"; - config.composite = "Test_ASM_0101.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0001_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_0001"; + config.input = "request"; + config.output = config.testName + " " + config.input + " invoked ok"; + config.composite = "Test_ASM_0101.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0001_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class BaseTest Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseTestCase.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseTestCase.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseTestCase.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/BaseTestCase.java Thu Mar 5 06:03:09 2009 @@ -18,7 +18,7 @@ */ package client; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; import org.apache.tuscany.sca.node.Node; import org.apache.tuscany.sca.node.equinox.launcher.Contribution; @@ -39,58 +39,59 @@ protected NodeLauncher launcher; protected Node node; protected TestConfiguration testConfiguration = getTestConfiguration(); - + public static void main(String[] args) throws Exception { - BaseTestCase test = new BaseTestCase(); - test.setUp(); - test.tearDown(); + BaseTestCase test = new BaseTestCase(); + test.setUp(); + test.tearDown(); } - + @Before - public void setUp() throws Exception { - startContribution(); + public void setUp() throws Exception { + startContribution(); } @After public void tearDown() throws Exception { - stopContribution(); + stopContribution(); } @Test public void testDummy() throws Exception { - // System.out.println("Test " + testName + " starting"); - try { - String output = invokeTest( testConfiguration.getInput() ); - assertEquals( testConfiguration.getExpectedOutput(), output ); - } catch (Exception e) { - assertEquals( testConfiguration.getExpectedOutput(), "exception" ); - System.out.println( "Expected exception - detail: " + e.getMessage() ); - } - System.out.println("Test " + testConfiguration.getTestName() + " completed successfully"); - } - - public String invokeTest( String input ) throws Exception { - - TestInvocation service = (TestInvocation) getService( testConfiguration.getServiceInterface(), - testConfiguration.getTestServiceName() ); - - return service.invokeTest( input ); + // System.out.println("Test " + testName + " starting"); + try { + String output = invokeTest(testConfiguration.getInput()); + assertEquals(testConfiguration.getExpectedOutput(), output); + } catch (Exception e) { + assertEquals(testConfiguration.getExpectedOutput(), "exception"); + System.out.println("Expected exception - detail: " + e.getMessage()); + } + System.out.println("Test " + testConfiguration.getTestName() + " completed successfully"); + } + + public String invokeTest(String input) throws Exception { + + TestInvocation service = + (TestInvocation)getService(testConfiguration.getServiceInterface(), testConfiguration.getTestServiceName()); + + return service.invokeTest(input); } // end method invokeTest - - protected <T> T getService( Class<T> interfaze, String serviceName ) { - T service = node.getService( interfaze, serviceName ); - return service; + + protected <T> T getService(Class<T> interfaze, String serviceName) { + T service = node.getService(interfaze, serviceName); + return service; } // end getService - + protected void startContribution() throws Exception { - // Tuscany specific code which starts the contribution holding the test + // Tuscany specific code which starts the contribution holding the test launcher = NodeLauncher.newInstance(); - node = launcher.createNode(testConfiguration.getComposite(), - new Contribution(testConfiguration.getTestName(), getContributionURI())); + node = + launcher.createNode(testConfiguration.getComposite(), new Contribution(testConfiguration.getTestName(), + getContributionURI())); System.out.println("SCA Node API ClassLoader: " + node.getClass().getClassLoader()); node.start(); } // end method startContribution - + protected void stopContribution() throws Exception { if (node != null) { node.stop(); @@ -100,22 +101,22 @@ launcher.destroy(); } } // end method stopContribution - + protected String getContributionURI() { - String location = ContributionLocationHelper.getContributionLocation(testConfiguration.getTestClass()); - return location; + String location = ContributionLocationHelper.getContributionLocation(testConfiguration.getTestClass()); + return location; } - + protected TestConfiguration getTestConfiguration() { - TestConfiguration config = new TestConfiguration(); - config.testName = "ASM_0001"; - config.input = "request"; - config.output = config.testName + " " + config.input + " invoked ok"; - config.composite = "Test_ASM_0001.composite"; - config.testServiceName = "TestClient"; - config.testClass = ASM_0001_Client.class; - config.serviceInterface = TestInvocation.class; - return config; + TestConfiguration config = new TestConfiguration(); + config.testName = "ASM_0001"; + config.input = "request"; + config.output = config.testName + " " + config.input + " invoked ok"; + config.composite = "Test_ASM_0001.composite"; + config.testServiceName = "TestClient"; + config.testClass = ASM_0001_Client.class; + config.serviceInterface = TestInvocation.class; + return config; } - + } // end class BaseTest Modified: tuscany/java/sca/stest/sampleTest/src/test/java/client/TestConfiguration.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/client/TestConfiguration.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/client/TestConfiguration.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/client/TestConfiguration.java Thu Mar 5 06:03:09 2009 @@ -15,8 +15,8 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - */ - + */ + package client; /** @@ -25,22 +25,43 @@ * */ class TestConfiguration { - - public String testName; - public String input; - public String output; - public String composite; - public String testServiceName; - public Class<?> testClass; //TODO - does the client need this?? - public Class<?> serviceInterface; - - public TestConfiguration() { } - - public String getTestName() { return testName; } - public String getInput() { return input; } - public String getExpectedOutput() { return output; } - public String getComposite() { return composite; } - public String getTestServiceName() { return testServiceName; } - public Class<?> getTestClass() { return testClass; } - public Class<?> getServiceInterface() { return serviceInterface; } -} + + public String testName; + public String input; + public String output; + public String composite; + public String testServiceName; + public Class<?> testClass; //TODO - does the client need this?? + public Class<?> serviceInterface; + + public TestConfiguration() { + } + + public String getTestName() { + return testName; + } + + public String getInput() { + return input; + } + + public String getExpectedOutput() { + return output; + } + + public String getComposite() { + return composite; + } + + public String getTestServiceName() { + return testServiceName; + } + + public Class<?> getTestClass() { + return testClass; + } + + public Class<?> getServiceInterface() { + return serviceInterface; + } +} Modified: tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTest.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTest.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTest.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTest.java Thu Mar 5 06:03:09 2009 @@ -25,7 +25,6 @@ import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; - /** * <p>Java class for anonymous complex type. * @@ -46,9 +45,7 @@ * */ @XmlAccessorType(XmlAccessType.FIELD) -...@xmltype(name = "", propOrder = { - "arg0" -}) +...@xmltype(name = "", propOrder = {"arg0"}) @XmlRootElement(name = "invokeTest") public class InvokeTest { @@ -76,7 +73,7 @@ * */ public void setArg0(JAXBElement<String> value) { - this.arg0 = ((JAXBElement<String> ) value); + this.arg0 = ((JAXBElement<String>)value); } } Modified: tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTestResponse.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTestResponse.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTestResponse.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/testClient/InvokeTestResponse.java Thu Mar 5 06:03:09 2009 @@ -25,7 +25,6 @@ import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; - /** * <p>Java class for anonymous complex type. * @@ -46,9 +45,7 @@ * */ @XmlAccessorType(XmlAccessType.FIELD) -...@xmltype(name = "", propOrder = { - "_return" -}) +...@xmltype(name = "", propOrder = {"_return"}) @XmlRootElement(name = "invokeTestResponse") public class InvokeTestResponse { @@ -76,7 +73,7 @@ * */ public void setReturn(JAXBElement<String> value) { - this._return = ((JAXBElement<String> ) value); + this._return = ((JAXBElement<String>)value); } } Modified: tuscany/java/sca/stest/sampleTest/src/test/java/testClient/ObjectFactory.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/testClient/ObjectFactory.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/testClient/ObjectFactory.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/testClient/ObjectFactory.java Thu Mar 5 06:03:09 2009 @@ -23,7 +23,6 @@ import javax.xml.bind.annotation.XmlRegistry; import javax.xml.namespace.QName; - /** * This object contains factory methods for each * Java content interface and Java element interface Modified: tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestException.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestException.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestException.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestException.java Thu Mar 5 06:03:09 2009 @@ -22,7 +22,6 @@ import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; - /** * <p>Java class for TestException complex type. * @@ -43,9 +42,7 @@ * */ @XmlAccessorType(XmlAccessType.FIELD) -...@xmltype(name = "TestException", propOrder = { - "message" -}) +...@xmltype(name = "TestException", propOrder = {"message"}) public class TestException { protected String message; Modified: tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestException_Exception.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestException_Exception.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestException_Exception.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestException_Exception.java Thu Mar 5 06:03:09 2009 @@ -20,7 +20,6 @@ import javax.xml.ws.WebFault; - /** * This class was generated by the JAX-WS RI. * JAX-WS RI 2.1.1 in JDK 6 @@ -28,9 +27,7 @@ * */ @WebFault(name = "TestException", targetNamespace = "http://test/") -public class TestException_Exception - extends Exception -{ +public class TestException_Exception extends Exception { /** * Java type that goes as soapenv:Fault detail element. Modified: tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestInvocation.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestInvocation.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestInvocation.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestInvocation.java Thu Mar 5 06:03:09 2009 @@ -26,7 +26,6 @@ import javax.xml.ws.RequestWrapper; import javax.xml.ws.ResponseWrapper; - /** * This class was generated by the JAX-WS RI. * JAX-WS RI 2.1.1 in JDK 6 @@ -34,12 +33,9 @@ * */ @WebService(name = "TestInvocation", targetNamespace = "http://test/") -...@xmlseealso({ - ObjectFactory.class -}) +...@xmlseealso( {ObjectFactory.class}) public interface TestInvocation { - /** * * @param arg0 @@ -51,10 +47,6 @@ @WebResult(targetNamespace = "") @RequestWrapper(localName = "invokeTest", targetNamespace = "http://test/", className = "testClient.InvokeTest") @ResponseWrapper(localName = "invokeTestResponse", targetNamespace = "http://test/", className = "testClient.InvokeTestResponse") - public String invokeTest( - @WebParam(name = "arg0", targetNamespace = "") - String arg0) - throws TestException_Exception - ; + public String invokeTest(@WebParam(name = "arg0", targetNamespace = "") String arg0) throws TestException_Exception; } Modified: tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestInvocationService.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestInvocationService.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestInvocationService.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/testClient/TestInvocationService.java Thu Mar 5 06:03:09 2009 @@ -20,13 +20,13 @@ import java.net.MalformedURLException; import java.net.URL; + import javax.xml.namespace.QName; import javax.xml.ws.Service; import javax.xml.ws.WebEndpoint; import javax.xml.ws.WebServiceClient; import javax.xml.ws.WebServiceFeature; - /** * This class was generated by the JAX-WS RI. * JAX-WS RI 2.1.1 in JDK 6 @@ -34,9 +34,7 @@ * */ @WebServiceClient(name = "TestInvocationService", targetNamespace = "http://test/", wsdlLocation = "file:/C:/temp/Tuscany_2_0_Work/TestClient.wsdl") -public class TestInvocationService - extends Service -{ +public class TestInvocationService extends Service { private final static URL TESTINVOCATIONSERVICE_WSDL_LOCATION; @@ -77,7 +75,9 @@ */ @WebEndpoint(name = "TestInvocationPort") public TestInvocation getTestInvocationPort(WebServiceFeature... features) { - return (TestInvocation)super.getPort(new QName("http://test/", "TestInvocationPort"), TestInvocation.class, features); + return (TestInvocation)super.getPort(new QName("http://test/", "TestInvocationPort"), + TestInvocation.class, + features); } } Modified: tuscany/java/sca/stest/sampleTest/src/test/java/testClient/package-info.java URL: http://svn.apache.org/viewvc/tuscany/java/sca/stest/sampleTest/src/test/java/testClient/package-info.java?rev=750325&r1=750324&r2=750325&view=diff ============================================================================== --- tuscany/java/sca/stest/sampleTest/src/test/java/testClient/package-info.java (original) +++ tuscany/java/sca/stest/sampleTest/src/test/java/testClient/package-info.java Thu Mar 5 06:03:09 2009 @@ -18,3 +18,4 @@ */ @javax.xml.bind.annotation.XmlSchema(namespace = "http://test/") package testClient; +
