@Test(expected= org.societies.utilities.DBC.PreconditionException.class) public void testGetInvalidMethodString() { assertEquals(METHOD_3, ServiceMethodTranslator.getMethodName(methodsArray, 4)); }
public static String getMethodName(String [] methodsArray, int index) { Dbc.require("An array of method(s) must be supplied", methodsArray != null && methodsArray.length > 0); Dbc.require("Method index must be 0 or greater", index >= 0 && index < methodsArray.length); return parseMethod(methodsArray[index]); }
ServiceMethodTranslator { public static String getMethodName(String [] methodsArray, int index) { Dbc.require("An array of method(s) must be supplied", methodsArray != null && methodsArray.length > 0); Dbc.require("Method index must be 0 or greater", index >= 0 && index < methodsArray.length); return parseMethod(methodsArray[index]); } }
ServiceMethodTranslator { public static String getMethodName(String [] methodsArray, int index) { Dbc.require("An array of method(s) must be supplied", methodsArray != null && methodsArray.length > 0); Dbc.require("Method index must be 0 or greater", index >= 0 && index < methodsArray.length); return parseMethod(methodsArray[index]); }  }
ServiceMethodTranslator { public static String getMethodName(String [] methodsArray, int index) { Dbc.require("An array of method(s) must be supplied", methodsArray != null && methodsArray.length > 0); Dbc.require("Method index must be 0 or greater", index >= 0 && index < methodsArray.length); return parseMethod(methodsArray[index]); }  static int getMethodIndex(String [] methodsArray, String methodName); static String getMethodName(String [] methodsArray, int index); static String getMethodSignature(String [] methodsArray, int index); static int getParameterNumber(String methodName); static String getMethodParameterType(String methodName, int parameter); static String getMethodParameterTypeCapitalised(String methodName, int parameter); static String [] getMethodParameterTypesCapitalised(String methodName); static String [] getMethodParameterTypes(String methodName); static String getMethodParameterName(String methodName, int parameter); static String [] getMethodParameterNames(String methodName); static Class [] getParameterClasses(String methodName); }
ServiceMethodTranslator { public static String getMethodName(String [] methodsArray, int index) { Dbc.require("An array of method(s) must be supplied", methodsArray != null && methodsArray.length > 0); Dbc.require("Method index must be 0 or greater", index >= 0 && index < methodsArray.length); return parseMethod(methodsArray[index]); }  static int getMethodIndex(String [] methodsArray, String methodName); static String getMethodName(String [] methodsArray, int index); static String getMethodSignature(String [] methodsArray, int index); static int getParameterNumber(String methodName); static String getMethodParameterType(String methodName, int parameter); static String getMethodParameterTypeCapitalised(String methodName, int parameter); static String [] getMethodParameterTypesCapitalised(String methodName); static String [] getMethodParameterTypes(String methodName); static String getMethodParameterName(String methodName, int parameter); static String [] getMethodParameterNames(String methodName); static Class [] getParameterClasses(String methodName); static final String JAVA_LANG_PREFIX; static final String ANDROID_OS_PREFIX; static final String JAVA_PRIMITIVES; static final String JAVA_LANG_CLASSES; }