Formatting JSONRPC test artifacts

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@821094 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
lresende 2009-10-02 16:48:52 +00:00
parent 801a2949b2
commit 8eaf5a0a37
3 changed files with 72 additions and 72 deletions
java/sca/modules/binding-jsonrpc-runtime/src/test/java/echo

View file

@ -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();
}

View file

@ -22,8 +22,8 @@ public class EchoBusinessException extends Exception {
private static final long serialVersionUID = 7234119326657905710L;
public EchoBusinessException(String message)
{
super(message);
}
{
super(message);
}
}

View file

@ -40,64 +40,64 @@ public class EchoComponentImpl implements Echo {
return "echo: " + msg;
}
public void echoBusinessException() throws EchoBusinessException {
throw new EchoBusinessException("Business Exception");
}
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 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() {
}
}