| 5 | import java.util.*; |
| 6 | |
| 7 | public interface HelloInterface extends Remote { |
| 8 | /** START TESTS **/ |
| 9 | // void function |
| 10 | public String restart() throws RemoteException; |
| 11 | |
| 12 | // invoke tests |
| 13 | public boolean login(String email, String password) throws RemoteException; |
| 14 | public int add(int a, int b) throws RemoteException; |
| 15 | public int addList(int[] a) throws RemoteException; |
| 16 | |
| 17 | // Single param type tests |
| 18 | public String sayTest1(int name) throws RemoteException; |
| 19 | public String sayTest2(byte name) throws RemoteException; |
| 20 | public String sayTest3(short name) throws RemoteException; |
| 21 | public String sayTest4(long name) throws RemoteException; |
| 22 | public String sayTest5(char name) throws RemoteException; |
| 23 | public String sayTest6(boolean name) throws RemoteException; |
| 24 | public String sayTest7(float name) throws RemoteException; |
| 25 | public String sayTest8(double name) throws RemoteException; |
| 26 | public String sayTest9(Map name) throws RemoteException; |
| 27 | public String sayTest10(HashMap name) throws RemoteException; |
| 28 | public String sayTest11(List name) throws RemoteException; |
| 29 | public String sayTest12(Object name) throws RemoteException; |
| 30 | public String sayTest13(Class name) throws RemoteException; |
| 31 | public String sayTest14(int[] name) throws RemoteException; |
| 32 | public String sayTest15(Object[] name) throws RemoteException; |
| 33 | public String sayTest16(HashMap[] name) throws RemoteException; |
| 34 | |
| 35 | // Overload tests |
| 36 | public String sayHello(int name) throws RemoteException; |
| 37 | public String sayHello(String name) throws RemoteException; |
| 38 | public String sayHello(String name, String from) throws RemoteException; |
| 39 | |
| 40 | // Multi-param tests + overloading |
| 41 | public String sayTest17(int a, float b) throws RemoteException; |
| 42 | public String sayTest17(int a) throws RemoteException; |
| 43 | public String sayTest18(List a, List b) throws RemoteException; |
| 44 | public String sayTest18(List a) throws RemoteException; |
| 45 | public String sayTest19(int a) throws RemoteException; |
| 46 | public String sayTest19(List a, List b) throws RemoteException; |
| 47 | public String sayTest19(List[] a, int b) throws RemoteException; |
| 48 | |
| 49 | //Different return types |
| 50 | public Object sayTest20(String a) throws RemoteException; |
| 51 | public Object[] sayTest21(String a) throws RemoteException; |
| 52 | public int[] sayTest22(String a) throws RemoteException; |
| 53 | public Class[][] sayTest23(String a) throws RemoteException; |
| 54 | public void sayTest24(String a) throws RemoteException; |
| 55 | /** END TESTS **/ |
| 56 | } |
no outgoing calls
no test coverage detected