From ddce09144c53a0edd85f5929605cd3d3191d4ea4 Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 10 Feb 2011 08:36:51 +0000 Subject: Copy trunk to beta2 release branch. (I've not yet changed the version so that would need to be done first before the branch is used) git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1069272 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/java/echo/EchoClientImpl.java | 97 ++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 sca-java-2.x/branches/2.0-Beta2/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoClientImpl.java (limited to 'sca-java-2.x/branches/2.0-Beta2/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoClientImpl.java') diff --git a/sca-java-2.x/branches/2.0-Beta2/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoClientImpl.java b/sca-java-2.x/branches/2.0-Beta2/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoClientImpl.java new file mode 100644 index 0000000000..9a2d41146e --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoClientImpl.java @@ -0,0 +1,97 @@ +/* + * 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 echo; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.oasisopen.sca.annotation.Reference; + +import bean.TestBean; + +public class EchoClientImpl implements Echo { + @Reference + protected Echo echoReference; + + public String echo(String msg) { + return echoReference.echo(msg); + } + + public void echoVoid() { + echoReference.echoVoid(); + } + + public int[] echoArrayInt(int[] intArray) { + throw new UnsupportedOperationException("UNsupported !"); + } + + public String[] echoArrayString(String[] stringArray) { + throw new UnsupportedOperationException("UNsupported !"); + } + + public TestBean echoBean(TestBean testBean) { + throw new UnsupportedOperationException("UNsupported !"); + } + + public boolean echoBoolean(boolean param) { + throw new UnsupportedOperationException("UNsupported !"); + } + + public void echoBusinessException() throws EchoBusinessException { + throw new UnsupportedOperationException("UNsupported !"); + } + + public int echoInt(int param) { + throw new UnsupportedOperationException("UNsupported !"); + } + + public double echoDouble(double param) { + throw new UnsupportedOperationException("UNsupported !"); + } + + public List echoList(ArrayList list) { + throw new UnsupportedOperationException("UNsupported !"); + } + + public Map echoMap(HashMap map) { + throw new UnsupportedOperationException("UNsupported !"); + } + + public void echoRuntimeException() throws RuntimeException { + throw new UnsupportedOperationException("UNsupported !"); + } + + public Set echoSet(HashSet set) { + throw new UnsupportedOperationException("UNsupported !"); + } + + public void get\u03a9\u03bb\u03c0() { + throw new UnsupportedOperationException("UNsupported !"); + } + + public BigDecimal echoBigDecimal(BigDecimal param) { + throw new UnsupportedOperationException("UNsupported !"); + } +} -- cgit v1.2.3