From f860c2f35b2f94e379d2ff7d5c13f54cd4a3132a Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:06:42 +0000 Subject: Moving 1.x branches git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835119 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/itest/SCADataTypeHelper.java | 341 ---------- .../sca/itest/SCADataTypeHelperException.java | 29 - .../sca/itest/SCATestToolCallbackService.java | 27 - .../tuscany/sca/itest/SCATestToolServer.java | 46 -- .../tuscany/sca/itest/SCATestToolService.java | 39 -- .../tuscany/sca/itest/SCATestToolServiceImpl.java | 76 --- .../tuscany/sca/util/SCATestUtilityService.java | 64 -- .../resources/bindingscomposite-system.composite | 36 -- .../src/main/resources/bindingscomposite.composite | 49 -- .../src/main/resources/wsdl/testtool.wsdl | 272 -------- .../src/main/resources/wsdl/testutility.wsdl | 704 --------------------- .../sca/itest/SCATestToolServerTestCase.java | 45 -- 12 files changed, 1728 deletions(-) delete mode 100644 branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCADataTypeHelper.java delete mode 100644 branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCADataTypeHelperException.java delete mode 100644 branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolCallbackService.java delete mode 100644 branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolServer.java delete mode 100644 branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolService.java delete mode 100644 branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolServiceImpl.java delete mode 100644 branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/util/SCATestUtilityService.java delete mode 100644 branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/resources/bindingscomposite-system.composite delete mode 100644 branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/resources/bindingscomposite.composite delete mode 100644 branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/resources/wsdl/testtool.wsdl delete mode 100644 branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/resources/wsdl/testutility.wsdl delete mode 100644 branches/sca-java-0.90/itest/bindings/bindingscomposite/src/test/java/org/apache/tuscany/sca/itest/SCATestToolServerTestCase.java (limited to 'branches/sca-java-0.90/itest/bindings/bindingscomposite/src') diff --git a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCADataTypeHelper.java b/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCADataTypeHelper.java deleted file mode 100644 index efe30c4f4e..0000000000 --- a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCADataTypeHelper.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest; - -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Date; -import java.util.GregorianCalendar; -import java.util.Random; -import java.util.Vector; - -import org.apache.tuscany.sca.util.SCATestUtilityService; - -public class SCADataTypeHelper { - - Date date; - Random ran; - SCATestUtilityService scaUtil; // change this to be the service provider - - public SCADataTypeHelper(SCATestUtilityService util) { - date = new Date(); - ran = new Random(date.getTime()); - scaUtil = util; - } - - public StringBuffer test_char() throws SCADataTypeHelperException { - - char x = 'a'; - x += ran.nextInt(26); // get a char a-z - StringBuffer rc = new StringBuffer("\nchar datatype test sending ==> " + x); - try { - char y = scaUtil.echo_char(x); - if (x == y) { - rc.append("\nchar successfully received ==> " + y); - } else { - throw new SCADataTypeHelperException(rc + "\nDatatype exception: char ==> " + y); - } - } catch (Exception e) { - throw new SCADataTypeHelperException("\nRemote exception from scaUtil.echo_char\n" + e.toString()); - } - return rc; - } - - public StringBuffer test_String() throws SCADataTypeHelperException { - - String x = date.toString(); - StringBuffer rc = new StringBuffer("\nString datatype test sending ==> " + x); - try { - String y = scaUtil.echo_String(x); - if (x.equals(y)) { - rc.append("\nString successfully received ==> " + y); - } else { - throw new SCADataTypeHelperException(rc + "\nDatatype exception: String ==> " + y); - } - } catch (Exception e) { - throw new SCADataTypeHelperException("\nRemote exception from scaUtil.echo_String\n" + e.toString()); - } - return rc; - } - - public StringBuffer test_int() throws SCADataTypeHelperException { - - int x = ran.nextInt(); - StringBuffer rc = new StringBuffer("\nint datatype test sending ==> " + x); - try { - int y = scaUtil.echo_int(x); - if (x == y) { - rc.append("\nint successfully received ==> " + y); - } else { - throw new SCADataTypeHelperException(rc + "\nDatatype exception: int ==> " + y); - } - } catch (Exception e) { - throw new SCADataTypeHelperException("\nRemote exception from scaUtil.echo_int\n" + e.toString()); - } - return rc; - } - - public StringBuffer test_boolean() throws SCADataTypeHelperException { - - boolean x = ran.nextBoolean(); - StringBuffer rc = new StringBuffer("\nboolean datatype test sending ==> " + x); - try { - boolean y = scaUtil.echo_boolean(x); - if (x == y) { - rc.append("\nboolean successfully received ==> " + y); - } else { - throw new SCADataTypeHelperException(rc + "\nDatatype exception: boolean ==> " + y); - } - } catch (Exception e) { - throw new SCADataTypeHelperException("\nRemote exception from scaUtil.echo_boolean\n" + e.toString()); - } - return rc; - } - - public StringBuffer test_long() throws SCADataTypeHelperException { - - long x = ran.nextLong(); - StringBuffer rc = new StringBuffer("\nlong datatype test sending ==> " + x); - try { - long y = scaUtil.echo_long(x); - if (x == y) { - rc.append("\nlong successfully received ==> " + y); - } else { - throw new SCADataTypeHelperException(rc + "\nDatatype exception: long ==> " + y); - } - } catch (Exception e) { - throw new SCADataTypeHelperException("\nRemote exception from scaUtil.echo_long\n" + e.toString()); - } - return rc; - } - - public StringBuffer test_short() throws SCADataTypeHelperException { - - short x = (short)ran.nextInt(); - StringBuffer rc = new StringBuffer("\nshort datatype test sending ==> " + x); - try { - short y = scaUtil.echo_short(x); - if (x == y) { - rc.append("\nshort successfully received ==> " + y); - } else { - throw new SCADataTypeHelperException(rc + "\nDatatype exception: short ==> " + y); - } - } catch (Exception e) { - throw new SCADataTypeHelperException("\nRemote exception from scaUtil.echo_short\n" + e.toString()); - } - return rc; - } - - public StringBuffer test_float() throws SCADataTypeHelperException { - - float x = ran.nextFloat(); - StringBuffer rc = new StringBuffer("\nfloat datatype test sending ==> " + x); - try { - float y = scaUtil.echo_float(x); - if (x == y) { - rc.append("\nfloat successfully received ==> " + y); - } else { - throw new SCADataTypeHelperException(rc + "\nDatatype exception: float ==> " + y); - } - } catch (Exception e) { - throw new SCADataTypeHelperException("\nRemote exception from scaUtil.echo_float " + e.toString()); - } - return rc; - } - - public StringBuffer test_double() throws SCADataTypeHelperException { - - double x = ran.nextDouble(); - StringBuffer rc = new StringBuffer("\ndouble datatype test sending ==> " + x); - try { - double y = scaUtil.echo_double(x); - if (x == y) { - rc.append("\ndouble successfully received ==> " + y); - } else { - throw new SCADataTypeHelperException(rc + "\nDatatype exception: double ==> " + y); - } - } catch (Exception e) { - throw new SCADataTypeHelperException("\nRemote exception from scaUtil.echo_double\n" + e.toString()); - } - return rc; - } - - public StringBuffer test_BigInteger() throws SCADataTypeHelperException { - - BigInteger x = new BigInteger(ran.nextInt(32) + 32, ran); // between - // 32 - 64 - // bitLength - StringBuffer rc = new StringBuffer("\nBigInteger datatype test sending ==> " + x); - try { - BigInteger y = scaUtil.echo_BigInteger(x); - if (x.equals(y)) { - rc.append("\nBigInteger successfully received ==> " + y); - } else { - throw new SCADataTypeHelperException("\n" + rc + "\nDatatype exception: BigInteger ==> " + y); - } - } catch (Exception e) { - throw new SCADataTypeHelperException("\nRemote exception from scaUtil.echo_BigInteger\n" + e.toString()); - } - return rc; - } - - public StringBuffer test_BigDecimal() throws SCADataTypeHelperException { - - BigDecimal x = new BigDecimal(ran.nextDouble()); - StringBuffer rc = new StringBuffer("\nBigDecimal datatype test sending ==> " + x); - try { - BigDecimal y = scaUtil.echo_BigDecimal(x); - if (x.equals(y)) { - rc.append("\nBigDecimal successfully received ==> " + y); - } else { - throw new SCADataTypeHelperException("\n" + rc + "\nDatatype exception: BigDecimal ==> " + y); - } - } catch (Exception e) { - throw new SCADataTypeHelperException("\nRemote exception from scaUtil.echo_BigDecimal\n" + e.toString()); - } - return rc; - } - - private StringBuffer test_Vector() throws SCADataTypeHelperException { - - Vector vector = new Vector(); - vector.addElement("DanW"); - vector.addElement(new Float(2000F)); - vector.addElement(new Short((short)11)); - StringBuffer rc = new StringBuffer("\nVector datatype test sending ==> " + vector.toString()); - boolean passed = true; - try { - Vector y = scaUtil.echo_Vector(vector); - if (((String)y.elementAt(0)).equals("DanW")) { - rc.append("\nVector element 0 string " + y.elementAt(0) + " successfully recieved"); - } else { - passed = false; - } - if ((((Float)y.elementAt(1)).equals((Float)vector.elementAt(1)))) { - rc.append("\nVector element 1 Float " + y.elementAt(1) + " successfully recieved"); - } else { - passed = false; - } - if (y.elementAt(2).equals(vector.elementAt(2))) { - rc.append("\nVector element 2 (Short) " + y.elementAt(2) + " successfully received"); - } else { - passed = false; - } - if (!passed) { - // - // one of the tests failed - // - rc.append("\nVector element 0 (String) " + y.elementAt(0) + " should be \"DanW\""); - rc.append("\nVector element 1 (Float) " + y.elementAt(1) + " should be \"2000F\""); - rc.append("\nVector element 2 (Short) " + y.elementAt(2) + " should be \"11\""); - throw new SCADataTypeHelperException("\n" + rc + "\nDataType exception: Vector ==> " + y); - } - } catch (Exception e) { - throw new SCADataTypeHelperException("\nRemote exception from scaUtil.echo_Vector\n" + e.toString()); - } - return rc; - } - - public StringBuffer test_GregorianCalendar() throws SCADataTypeHelperException { - - GregorianCalendar x = new GregorianCalendar(); - StringBuffer rc = new StringBuffer("\nGregorianCalendar datatype test sending ==> " + x.toString()); - try { - GregorianCalendar y = scaUtil.echo_GregorianCalendar(x); - if (x.equals(y)) { - rc.append("\nGregorianCalendar successfully received ==> " + y); - } else { - throw new SCADataTypeHelperException("\n" + rc + "\nDatatype exception: GregorianCalendar ==> " + y); - } - } catch (Exception e) { - throw new SCADataTypeHelperException("\nRemote exception from scaUtil.echo_GregorianCalendar\n" + e - .toString()); - } - return rc; - } - - public StringBuffer doDataType() { - - StringBuffer rc = new StringBuffer(); - try { - rc.append(test_boolean()); - } catch (SCADataTypeHelperException e) { - rc.append("\n" + e.toString() + "\n"); - } - try { - rc.append(test_char()); - } catch (SCADataTypeHelperException e) { - rc.append("\n" + e.toString() + "\n"); - } - try { - rc.append(test_String()); - } catch (SCADataTypeHelperException e) { - rc.append("\n" + e.toString() + "\n"); - } - try { - rc.append(test_int()); - } catch (SCADataTypeHelperException e) { - rc.append("\n" + e.toString()); - } - try { - rc.append(test_long()); - } catch (SCADataTypeHelperException e) { - rc.append("\n" + e.toString() + "\n"); - } - try { - rc.append(test_short()); - } catch (SCADataTypeHelperException e) { - rc.append("\n" + e.toString() + "\n"); - } - try { - rc.append(test_float()); - } catch (SCADataTypeHelperException e) { - rc.append("\n" + e.toString() + "\n"); - } - try { - rc.append(test_double()); - } catch (SCADataTypeHelperException e) { - rc.append("\n" + e.toString() + "\n"); - } - try { - rc.append(test_BigInteger()); - } catch (SCADataTypeHelperException e) { - rc.append("\n" + e.toString() + "\n"); - } - try { - rc.append(test_BigDecimal()); - } catch (SCADataTypeHelperException e) { - rc.append("\n" + e.toString() + "\n"); - } - try { - rc.append(test_Vector()); - } catch (SCADataTypeHelperException e) { - rc.append("\n" + e.toString() + "\n"); - } - try { - rc.append(test_GregorianCalendar()); - } catch (SCADataTypeHelperException e) { - rc.append("\n" + e.toString() + "\n"); - } catch (Exception e) { - rc.append("\n" + e.toString() + "\n"); - } - - return rc; - } -} diff --git a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCADataTypeHelperException.java b/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCADataTypeHelperException.java deleted file mode 100644 index 074fba8057..0000000000 --- a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCADataTypeHelperException.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest; - -public class SCADataTypeHelperException extends Exception { - - public SCADataTypeHelperException() { - } - - public SCADataTypeHelperException(String msg) { - super(msg); - } -} diff --git a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolCallbackService.java b/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolCallbackService.java deleted file mode 100644 index c55e22c905..0000000000 --- a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolCallbackService.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest; - -/** - * SCA Test Tool Callback Service - */ -public interface SCATestToolCallbackService { - - public void pingCallBack(String reply); -} diff --git a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolServer.java b/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolServer.java deleted file mode 100644 index 44e799a566..0000000000 --- a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolServer.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest; - - -import java.io.IOException; - -import org.apache.tuscany.api.SCARuntime; - -public class SCATestToolServer { - - /** - * @param args - */ - public static void main(String[] args) { - - SCARuntime.start("bindingscomposite-system.composite", "bindingscomposite.composite"); - - try { - System.out.println("SCATestTool server started"); - System.in.read(); - } catch (IOException e) { - e.printStackTrace(); - } - - SCARuntime.stop(); - System.out.println("SCATestTool server stopped"); - } - -} diff --git a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolService.java b/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolService.java deleted file mode 100644 index 67b7e8eb64..0000000000 --- a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolService.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest; - -import org.osoa.sca.annotations.Remotable; - -/** - * SCA Test Tool Service - */ - -@Remotable -public interface SCATestToolService { - - public String doOneHopPing(String input); - - public String doTwoHopPing(String input); - - public String doDataTypeTest(String input); - - public String getCallbackBuffer(); - - public void clearCallbackBuffer(); -} diff --git a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolServiceImpl.java b/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolServiceImpl.java deleted file mode 100644 index e207a23927..0000000000 --- a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/itest/SCATestToolServiceImpl.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest; - -import org.apache.tuscany.sca.util.SCATestUtilityService; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * SCA Test Service Implementation - */ - -@Service(SCATestToolService.class) -public class SCATestToolServiceImpl implements SCATestToolService, SCATestToolCallbackService { - @Reference - public SCATestUtilityService scaTestUtil; - - private String callbackBuffer = null; - - public String doOneHopPing(String input) { - System.out.println("Invoking SCATestToolServiceImpl.doOneHopPing()"); - StringBuffer rc = new StringBuffer(); - rc.append("doOneHopPing(): "); - rc.append(input); - return rc.toString(); - } - - public String doTwoHopPing(String input) { - System.out.println("Invoking SCATestToolServiceImpl.doTwoHopPing()"); - StringBuffer rc = new StringBuffer(); - rc.append("doTwoHopPing(): "); - rc.append(input); - rc.append(" --> "); - rc.append(scaTestUtil.ping(input)); - return rc.toString(); - } - - public String doDataTypeTest(String input) { - StringBuffer rc = new StringBuffer(); - rc.append("doDataTypeTest(): "); - rc.append(input); - rc.append(" --> "); - SCADataTypeHelper dataHelper = new SCADataTypeHelper(scaTestUtil); - rc.append(dataHelper.doDataType()); - return rc.toString(); - } - - public void pingCallBack(String reply) { - callbackBuffer = reply; - } - - public String getCallbackBuffer() { - return callbackBuffer; - } - - public void clearCallbackBuffer() { - callbackBuffer = null; - } - -} diff --git a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/util/SCATestUtilityService.java b/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/util/SCATestUtilityService.java deleted file mode 100644 index 0ceb553727..0000000000 --- a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/java/org/apache/tuscany/sca/util/SCATestUtilityService.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.util; - -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.Vector; -import java.util.GregorianCalendar; - -import org.apache.tuscany.sca.itest.SCATestToolCallbackService; -import org.osoa.sca.annotations.Callback; -import org.osoa.sca.annotations.Remotable; - -/** - * SCA Test Utility Service - */ - -@Remotable -public interface SCATestUtilityService { - public String ping(String input); - - @Callback(SCATestToolCallbackService.class) - public void asyncping(); - - public int echo_int(int input); - - public short echo_short(short input); - - public long echo_long(long input); - - public float echo_float(float input); - - public double echo_double(double input); - - public boolean echo_boolean(boolean input); - - public char echo_char(char input); - - public String echo_String(String input); - - public BigDecimal echo_BigDecimal(BigDecimal input); - - public BigInteger echo_BigInteger(BigInteger input); - - public Vector echo_Vector(Vector input); - - public GregorianCalendar echo_GregorianCalendar(GregorianCalendar input); -} diff --git a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/resources/bindingscomposite-system.composite b/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/resources/bindingscomposite-system.composite deleted file mode 100644 index c288471c14..0000000000 --- a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/resources/bindingscomposite-system.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - 8080 - - - diff --git a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/resources/bindingscomposite.composite b/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/resources/bindingscomposite.composite deleted file mode 100644 index 33f9f713c2..0000000000 --- a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/resources/bindingscomposite.composite +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - SCATestToolWSServiceComponent - - - - - - SCATestUtilityWSReference - - - - - - - - - - diff --git a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/resources/wsdl/testtool.wsdl b/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/resources/wsdl/testtool.wsdl deleted file mode 100644 index 729593518d..0000000000 --- a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/resources/wsdl/testtool.wsdl +++ /dev/null @@ -1,272 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/resources/wsdl/testutility.wsdl b/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/resources/wsdl/testutility.wsdl deleted file mode 100644 index 32d9050a61..0000000000 --- a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/main/resources/wsdl/testutility.wsdl +++ /dev/null @@ -1,704 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/test/java/org/apache/tuscany/sca/itest/SCATestToolServerTestCase.java b/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/test/java/org/apache/tuscany/sca/itest/SCATestToolServerTestCase.java deleted file mode 100644 index f6fe13c112..0000000000 --- a/branches/sca-java-0.90/itest/bindings/bindingscomposite/src/test/java/org/apache/tuscany/sca/itest/SCATestToolServerTestCase.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.tuscany.sca.itest; - - -import java.io.IOException; -import java.net.Socket; - -import junit.framework.TestCase; - -import org.apache.tuscany.api.SCARuntime; - -public class SCATestToolServerTestCase extends TestCase { - - @Override - protected void setUp() throws Exception { - SCARuntime.start("bindingscomposite-system.composite", "bindingscomposite.composite"); - } - - public void testPing() throws IOException { - new Socket("127.0.0.1", 8080); - } - - @Override - protected void tearDown() throws Exception { - SCARuntime.stop(); - } - -} -- cgit v1.2.3