From 8eaf5a0a37fdf4209e968d6a5f1686d844fd5668 Mon Sep 17 00:00:00 2001 From: lresende Date: Fri, 2 Oct 2009 16:48:52 +0000 Subject: Formatting JSONRPC test artifacts git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@821094 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/java/echo/Echo.java | 26 ++--- .../src/test/java/echo/EchoBusinessException.java | 6 +- .../src/test/java/echo/EchoComponentImpl.java | 116 ++++++++++----------- 3 files changed, 74 insertions(+), 74 deletions(-) (limited to 'java/sca/modules/binding-jsonrpc-runtime/src/test') diff --git a/java/sca/modules/binding-jsonrpc-runtime/src/test/java/echo/Echo.java b/java/sca/modules/binding-jsonrpc-runtime/src/test/java/echo/Echo.java index 3ff58491d5..322008de1f 100644 --- a/java/sca/modules/binding-jsonrpc-runtime/src/test/java/echo/Echo.java +++ b/java/sca/modules/binding-jsonrpc-runtime/src/test/java/echo/Echo.java @@ -36,29 +36,29 @@ import bean.TestBean; */ @Remotable public interface Echo { - + String echo(String msg); - + void echoRuntimeException() throws RuntimeException; - + void echoBusinessException() throws EchoBusinessException; - + int echoInt(int param); - + boolean echoBoolean(boolean param); - + Map echoMap(HashMap map); - + TestBean echoBean(TestBean testBean); - + List echoList(ArrayList list); - + String [] echoArrayString(String[] stringArray); - + int [] echoArrayInt(int[] intArray); - + Set echoSet(HashSet set); - + void get\u03a9\u03bb\u03c0(); - + } diff --git a/java/sca/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoBusinessException.java b/java/sca/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoBusinessException.java index bf8c7d2c8a..bd9d905475 100644 --- a/java/sca/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoBusinessException.java +++ b/java/sca/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoBusinessException.java @@ -22,8 +22,8 @@ public class EchoBusinessException extends Exception { private static final long serialVersionUID = 7234119326657905710L; public EchoBusinessException(String message) - { - super(message); - } + { + super(message); + } } diff --git a/java/sca/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoComponentImpl.java b/java/sca/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoComponentImpl.java index 2f4880286f..08ccb6e6d5 100644 --- a/java/sca/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoComponentImpl.java +++ b/java/sca/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoComponentImpl.java @@ -40,64 +40,64 @@ public class EchoComponentImpl implements Echo { return "echo: " + msg; } - public void echoBusinessException() throws EchoBusinessException { - throw new EchoBusinessException("Business Exception"); - - } - - public void echoRuntimeException() throws RuntimeException { - throw new RuntimeException("Runtime Exception"); - } - - public int echoInt(int param) { - int value = param; - return value; - } - - public boolean echoBoolean(boolean param) { - boolean value = param; - return value; - } - - public Map echoMap(HashMap param) { - Map map = new HashMap(); - map = param; - return map; - } - - public TestBean echoBean(TestBean testBean1) { - TestBean testBean = new TestBean(); - testBean.setTestString(testBean1.getTestString()); - testBean.setTestInt(testBean1.getTestInt()); - return testBean; - } - - public List echoList(ArrayList param){ - List list = new ArrayList(); - for(Iterator itr = param.iterator();itr.hasNext();) - { - list.add(itr.next()); - } - return list; - } - - public String[] echoArrayString(String[] stringArray) { - return stringArray; - } - - public int[] echoArrayInt(int[] intArray) { - return intArray; - } - - public Set echoSet(HashSet param){ - Set set = new HashSet(); - set = param; - return set; - - } - - - public void get\u03a9\u03bb\u03c0() { + public void echoBusinessException() throws EchoBusinessException { + throw new EchoBusinessException("Business Exception"); + } + + public void echoRuntimeException() throws RuntimeException { + throw new RuntimeException("Runtime Exception"); + } + + public int echoInt(int param) { + int value = param; + return value; + } + + public boolean echoBoolean(boolean param) { + boolean value = param; + return value; + } + + public Map echoMap(HashMap param) { + Map map = new HashMap(); + map = param; + return map; + } + + public TestBean echoBean(TestBean testBean1) { + TestBean testBean = new TestBean(); + testBean.setTestString(testBean1.getTestString()); + testBean.setTestInt(testBean1.getTestInt()); + return testBean; + } + + public List echoList(ArrayList param){ + List list = new ArrayList(); + for(Iterator itr = param.iterator();itr.hasNext();) + { + list.add(itr.next()); } + return list; + } + + public String[] echoArrayString(String[] stringArray) { + return stringArray; + } + + public int[] echoArrayInt(int[] intArray) { + return intArray; + } + + public Set echoSet(HashSet param){ + Set set = new HashSet(); + set = param; + return set; + + } + + + public void get\u03a9\u03bb\u03c0() { + + } } -- cgit v1.2.3