Home
last modified time | relevance | path

Searched refs:toStringMethod (Results 1 – 5 of 5) sorted by relevance

/external/mockito/src/test/java/org/mockito/internal/invocation/
DSerializableMethodTest.java21 private Method toStringMethod; field in SerializableMethodTest
27 toStringMethod = this.getClass().getMethod("toString", args); in createMethodToTestWith()
28 method = new SerializableMethod(toStringMethod); in createMethodToTestWith()
39 assertArrayEquals(toStringMethod.getExceptionTypes(), method.getExceptionTypes()); in shouldBeAbleToRetrieveMethodExceptionTypes()
44 assertEquals(toStringMethod.getName(), method.getName()); in shouldBeAbleToRetrieveMethodName()
49 assertEquals(toStringMethod.isVarArgs(), method.isVarArgs()); in shouldBeAbleToCheckIsArgVargs()
54 assertArrayEquals(toStringMethod.getParameterTypes(), method.getParameterTypes()); in shouldBeAbleToGetParameterTypes()
59 assertEquals(toStringMethod.getReturnType(), method.getReturnType()); in shouldBeAbleToGetReturnType()
64 assertTrue(new SerializableMethod(toStringMethod).equals(method)); in shouldBeEqualForTwoInstances()
/external/easymock/src/org/easymock/internal/
DObjectMethodsFilter.java32 private transient Method toStringMethod; field in ObjectMethodsFilter
51 toStringMethod = toMock.getMethod("toString", (Class[]) null); in ObjectMethodsFilter()
69 if (toStringMethod.equals(method)) { in invoke()
93 toStringMethod = ((MethodSerializationWrapper) stream.readObject()).getMethod(); in readObject()
105 stream.writeObject(new MethodSerializationWrapper(toStringMethod)); in writeObject()
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
DTestFmwk.java767 Method toStringMethod = classToBeTested.getDeclaredMethod("toString"); in invokeToString() local
768 toStringMethod.setAccessible(true); in invokeToString()
769 return (String) toStringMethod.invoke(obj); in invokeToString()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/
DTestFmwk.java768 Method toStringMethod = classToBeTested.getDeclaredMethod("toString"); in invokeToString() local
769 toStringMethod.setAccessible(true); in invokeToString()
770 return (String) toStringMethod.invoke(obj); in invokeToString()
/external/guava/guava-tests/test/com/google/common/reflect/
DTypeTokenTest.java1235 Method toStringMethod = Object.class.getMethod("toString"); in testMethod_declaredBySuperclass() local
1237 assertEquals(list.toString(), TypeToken.of(List.class).method(toStringMethod).invoke(list)); in testMethod_declaredBySuperclass()