summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/binding-jsonrpc-runtime/src/test
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-10-02 16:48:52 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-10-02 16:48:52 +0000
commit8eaf5a0a37fdf4209e968d6a5f1686d844fd5668 (patch)
treec6b339ed38a0cd47eafa5e3c6929efb36da9b9f2 /java/sca/modules/binding-jsonrpc-runtime/src/test
parent801a2949b2661e8bc050f5206d33105c0a3a236d (diff)
Formatting JSONRPC test artifacts
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@821094 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/binding-jsonrpc-runtime/src/test')
-rw-r--r--java/sca/modules/binding-jsonrpc-runtime/src/test/java/echo/Echo.java26
-rw-r--r--java/sca/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoBusinessException.java6
-rw-r--r--java/sca/modules/binding-jsonrpc-runtime/src/test/java/echo/EchoComponentImpl.java116
3 files changed, 74 insertions, 74 deletions
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() {
+
+ }
}