/external/mockito/src/test/java/org/mockitoutil/ |
JUnitResultAssert.java | 93 public JUnitResultAssert fails(String methodName, Class expectedException) { 95 if (methodName.equals(f.getDescription().getMethodName()) && expectedException.isInstance(f.getException())) { 99 throw new AssertionError("Method '" + methodName + "' did not fail with: " + expectedException.getSimpleName() 106 public JUnitResultAssert fails(int expectedFailureCount, String methodName, Class expectedException) { 108 .fails(methodName, expectedException);
|
/external/testng/src/main/java/org/testng/remote/strprotocol/ |
SuiteMessage.java | 41 String methodName = m.getTestClass().getName() + "." + m.getMethodName(); 42 m_excludedMethods.add(methodName); 43 if (m.getDescription() != null) m_descriptions.put(methodName, m.getDescription()); 57 public String getDescriptionForMethod(String methodName) { 58 return m_descriptions.get(methodName);
|
/external/guice/core/src/com/google/inject/internal/util/ |
StackTraceElements.java | 131 String methodName = inMemoryStackTraceElements[i].getMethodName(); 134 new StackTraceElement(declaringClass, methodName, UNKNOWN_SOURCE, lineNumber); 168 private String methodName; 175 InMemoryStackTraceElement(String declaringClass, String methodName, int lineNumber) { 177 this.methodName = methodName; 186 return methodName; 203 methodName.equals(e.methodName); 208 int result = 31 * declaringClass.hashCode() + methodName.hashCode() [all...] |
/external/junit-params/src/main/java/junitparams/internal/parameters/ |
ParamsFromMethodCommon.java | 28 for (String methodName : methodAnnotation.split(",")) { 29 for (Object param : invokeMethodWithParams(methodName.trim(), sourceClass)) 49 private Object[] invokeMethodWithParams(String methodName, Class<?> sourceClass) { 50 Method providerMethod = findMethodInTestClassHierarchy(methodName, sourceClass); 52 throw new RuntimeException("Could not find method: " + methodName + " so no params were used."); 121 private Method findMethodInTestClassHierarchy(String methodName, Class<?> sourceClass) { 125 return declaringClass.getDeclaredMethod(methodName);
|
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/StackFrame/ |
ThisObjectTest.java | 111 String methodName = debuggeeWrapper.vmMirror.getMethodName(frameIDs[i].location.classID, frameIDs[i].location.methodID); 112 logWriter.println("==> method name=" + methodName); 142 if (KNOWN_METHOD_NAMES[j].equals(methodName)) { 146 ("## FAILURE: StackFrame.ThisObject returned NULL ObjectID for known method: " + methodName); 148 fail("StackFrame.ThisObject returned NULL ObjectID for known method: " + methodName); 153 ("## FAILURE: Returned unexpected ObjectID for known method: " + methodName); 157 fail("Returned unexpected ObjectID for known method: " + methodName); 165 ("## FAILURE: StackFrame.ThisObject returned not OBJECT_TAG for known method: " + methodName); 167 fail("StackFrame.ThisObject returned not OBJECT_TAG for known method: " + methodName); 173 if (mainMethod.equals(methodName)) { [all...] |
/art/tools/dexfuzz/src/dexfuzz/program/mutators/ |
NewMethodCaller.java | 49 public String methodName; 67 methodName, 79 methodName = elements[5]; 130 mutation.methodName = "gc"; 169 mutation.methodName, mutation.signature); 180 mutation.className, mutation.methodName, mutation.signature, insertionPoint));
|
/frameworks/layoutlib/create/tests/com/android/tools/layoutlib/create/ |
StubMethodAdapterTest.java | 46 final String methodName = "returnTrue"; 48 testBoolean((name, type) -> false, Assert::assertTrue, methodName); 50 testBoolean((name, type) -> methodName.equals(name) && 51 Type.BOOLEAN_TYPE.equals(type.getReturnType()), Assert::assertFalse, methodName); 58 String methodName) throws Exception { 68 Method method = aClass.getMethod(methodName);
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/ |
MethodTest.java | 87 Class<?> c, String methodName, Class<? extends Annotation> annotationType, 89 Method method = c.getDeclaredMethod(methodName); 123 Class<?> c, Class<? extends Annotation> annotationType, String methodName, 125 Method method = c.getDeclaredMethod(methodName); 156 String methodName, String... expectedAnnotationStrings) throws Exception { 157 Method method = c.getDeclaredMethod(methodName);
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
BusinessLogicDeviceExecutor.java | 59 protected ResolvedMethod getResolvedMethod(Class cls, String methodName, String... args) 61 List<Method> nameMatches = getMethodsWithName(cls, methodName); 97 "BusinessLogic: Failed to invoke action method %s with args: %s", methodName,
|
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
ExperimentModule.java | 57 Method benchmarkMethod = findBenchmarkMethod(benchmarkClass, spec.benchmarkSpec.methodName(), 87 private static Method findBenchmarkMethod(Class<?> benchmark, String methodName, 91 return benchmark.getDeclaredMethod(methodName, params);
|
/external/easymock/src/org/easymock/internal/ |
MethodSerializationWrapper.java | 43 private String methodName;
49 methodName = m.getName();
77 Method m = clazz.getMethod(methodName, parameterTypes);
|
/external/emma/core/java12/com/vladium/jcd/lib/ |
Types.java | 363 public static String fullMethodDescriptorToUserName (final String classJavaName, String methodName, final String methoddescriptor) 365 if ("<init>".equals (methodName)) 366 methodName = simpleClassName (classJavaName); 367 if ("<clinit>".equals (methodName)) 368 methodName = "<static class initializer>"; 370 return methodName + ' ' + methodDescriptorToUserName (methoddescriptor); 374 public static String fullMethodDescriptorToFullUserName (final String classJavaName, String methodName, final String methoddescriptor) 376 if ("<init>".equals (methodName)) 377 methodName = simpleClassName (classJavaName); 378 if ("<clinit>".equals (methodName)) [all...] |
/external/javassist/src/main/javassist/convert/ |
TransformWriteField.java | 24 String methodClassname, String methodName) 26 super(next, field, methodClassname, methodName); 63 int methodref = cp.addMethodrefInfo(mi, methodName, type);
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue64/ |
ParameterizedTypeTest.java | 37 String methodName = "testMethod"; 42 MethodDesc methodDesc = new MethodDesc(methodName, argTypes); 50 assertEquals(methodName, parsed.getName());
|
/external/testng/src/main/java/org/testng/ |
DependencyMap.java | 52 public ITestNGMethod getMethodDependingOn(String methodName, ITestNGMethod fromMethod) { 53 List<ITestNGMethod> l = m_dependencies.get(methodName); 70 + "\" depends on nonexistent method \"" + methodName + "\"");
|
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/ |
BusinessLogicHostExecutor.java | 63 protected ResolvedMethod getResolvedMethod(Class cls, String methodName, String... args) 65 List<Method> nameMatches = getMethodsWithName(cls, methodName); 102 "BusinessLogic: Failed to invoke action method %s with args: %s", methodName,
|
/art/test/652-deopt-intrinsic/src/ |
Main.java | 47 public static native void ensureJitCompiled(Class<?> cls, String methodName);
|
/art/test/667-jit-jni-stub/src/ |
Main.java | 174 public native static void callThrough(Class<?> cls, String methodName); 179 public native static boolean isAotCompiled(Class<?> cls, String methodName); 180 public native static boolean hasJitCompiledEntrypoint(Class<?> cls, String methodName); 181 public native static boolean hasJitCompiledCode(Class<?> cls, String methodName);
|
/cts/tests/core/runner/src/com/android/cts/core/runner/ |
ExpectationBasedFilter.java | 102 String methodName = testDescription.getMethodName(); 103 String testName = className + "#" + methodName; 133 String methodName = child.getMethodName(); 134 if ("initializationError".equals(methodName)) {
|
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/ |
PSKKeyManagerProxy.java | 70 String methodName = method.getName(); 74 if ("getKey".equals(methodName)) { 80 } else if ("chooseServerKeyIdentityHint".equals(methodName)) { 86 } else if ("chooseClientKeyIdentity".equals(methodName)) {
|
/external/vogar/src/vogar/target/junit/junit3/ |
TestCaseFactory.java | 46 T createTest(Class<? extends TestCase> testClass, String methodName, Annotation[] annotations);
|
TestSuiteTransformer.java | 88 String methodName = testCase.getName(); 90 if (methodName != null) { 92 Method method = testCaseClass.getMethod(methodName); 98 return Description.createTestDescription(testCaseClass, methodName, annotations);
|
/external/xmlrpcpp/test/ |
FileClient.cpp | 45 // Find the methodName and parse the params
76 const char METHODNAME_TAG[] = "<methodName>";
84 std::string methodName = XmlRpcUtil::parseTag(METHODNAME_TAG, xml, &offset);
85 XmlRpcUtil::log(3, "XmlRpcServerConnection::parseRequest: parsed methodName %s.", methodName.c_str());
87 if (! methodName.empty() && XmlRpcUtil::findTag(PARAMS_TAG, xml, &offset))
107 return methodName;
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/ |
AndroidInterceptors.java | 61 public MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException { 92 public MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException { 116 return ReflectionHelpers.callStaticMethod(shadowSystemClockClass, methodSignature.methodName); 125 public MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException { 126 switch (methodName) { 156 public MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException { 193 public MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException { 224 public MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException { 248 @Override public MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException {
|
/test/suite_harness/common/util/src/com/android/compatibility/common/util/ |
BusinessLogicFactory.java | 58 private static final String METHOD_NAME = "methodName"; 161 String methodName = ruleConditionJSONObject.getString(METHOD_NAME); 163 if (methodName.startsWith("!")) { 164 methodName = methodName.substring(1); // remove negation from method name string 173 ruleConditions.add(new BusinessLogicRuleCondition(methodName, methodArgs, negated)); 179 ruleConditions.add(new BusinessLogicRuleCondition(methodName, methodArgs, negated)); 192 String methodName = ruleActionJSONObject.getString(METHOD_NAME); 199 ruleActions.add(new BusinessLogicRuleAction(methodName, methodArgs)); 205 ruleActions.add(new BusinessLogicRuleAction(methodName, methodArgs)) [all...] |