@Test public void testInvokePrivateMethod_primtiveType() throws Exception { assertTrue(Whitebox.<Boolean>invokeMethod(new ClassWithPrivateMethods(), "primitiveMethod", 8.2)); }
public static synchronized <T> T invokeMethod(Object instance, Object... arguments) throws Exception { return WhiteboxImpl.invokeMethod(instance, arguments); }
Whitebox { public static synchronized <T> T invokeMethod(Object instance, Object... arguments) throws Exception { return WhiteboxImpl.invokeMethod(instance, arguments); } }
Whitebox { public static synchronized <T> T invokeMethod(Object instance, Object... arguments) throws Exception { return WhiteboxImpl.invokeMethod(instance, arguments); }  }
Whitebox { public static synchronized <T> T invokeMethod(Object instance, Object... arguments) throws Exception { return WhiteboxImpl.invokeMethod(instance, arguments); }  static Field getField(Class<?> type, String fieldName); static Field[] getFields(Class<?> clazz, String... fieldNames); static Method getMethod(Class<?> type, String methodName, Class<?>... parameterTypes); static Method getMethod(Class<?> type, Class<?>... parameterTypes); static T newInstance(Class<T> classToInstantiate); static Constructor<T> getConstructor(Class<?> type, Class<?>... parameterTypes); static void setInternalState(Object object, String fieldName, Object value); static void setInternalState(Object object, String fieldName, Object[] value); static void setInternalState(Object object, Object value, Object... additionalValues); static void setInternalState(Object object, Object value, Class<?> where); static void setInternalState(Object object, String fieldName, Object value, Class<?> where); static void setInternalState(Object object, Class<?> fieldType, Object value); static void setInternalState(Object object, Class<?> fieldType, Object value, Class<?> where); static T getInternalState(Object object, String fieldName); static T getInternalState(Object object, String fieldName, Class<?> where); @Deprecated static T getInternalState(Object object, String fieldName, Class<?> where, Class<T> type); static T getInternalState(Object object, Class<T> fieldType); static T getInternalState(Object object, Class<T> fieldType, Class<?> where); static synchronized T invokeMethod(Object instance, Object... arguments); static synchronized T invokeMethod(Class<?> klass, Object... arguments); static synchronized T invokeMethod(Object instance, String methodToExecute, Object... arguments); static synchronized T invokeMethod(Object instance, String methodToExecute, Class<?>[] argumentTypes,
			Object... arguments); static synchronized T invokeMethod(Object instance, String methodToExecute, Class<?> definedIn,
			Class<?>[] argumentTypes, Object... arguments); static synchronized T invokeMethod(Object instance, Class<?> declaringClass, String methodToExecute,
			Object... arguments); static synchronized T invokeMethod(Object object, Class<?> declaringClass, String methodToExecute,
			Class<?>[] parameterTypes, Object... arguments); static synchronized T invokeMethod(Class<?> clazz, String methodToExecute, Object... arguments); static T invokeConstructor(Class<T> classThatContainsTheConstructorToTest, Class<?>[] parameterTypes,
			Object[] arguments); static T invokeConstructor(Class<T> classThatContainsTheConstructorToTest, Object... arguments); static Constructor<?> getFirstParentConstructor(Class<?> klass); static Method[] getMethods(Class<?> clazz, String... methodNames); static Class<?> getType(Object object); static Class<?> getUnproxyType(Object object); static Set<Field> getFieldsAnnotatedWith(Object object, Class<? extends Annotation> annotation,
			Class<? extends Annotation>... additionalAnnotations); static Set<Field> getFieldsAnnotatedWith(Object object, Class<? extends Annotation>[] annotationTypes); static Set<Field> getAllInstanceFields(Object object); static Set<Field> getAllStaticFields(Class<?> type); static Set<Field> getFieldsOfType(Object object, Class<?> type); static Class<Object> getInnerClassType(Class<?> declaringClass, String name); static Class<Object> getLocalClassType(Class<?> declaringClass, int occurrence, String name); static Class<Object> getAnonymousInnerClassType(Class<?> declaringClass, int occurrence); static void setInternalStateFromContext(Object instance, Object context, Object... additionalContexts); static void setInternalStateFromContext(Object classOrInstance, Class<?> context,
			Class<?>... additionalContexts); static void setInternalStateFromContext(Object instance, Object context, FieldMatchingStrategy strategy); static void setInternalStateFromContext(Object instance, Class<?> context, FieldMatchingStrategy strategy); }
Whitebox { public static synchronized <T> T invokeMethod(Object instance, Object... arguments) throws Exception { return WhiteboxImpl.invokeMethod(instance, arguments); }  static Field getField(Class<?> type, String fieldName); static Field[] getFields(Class<?> clazz, String... fieldNames); static Method getMethod(Class<?> type, String methodName, Class<?>... parameterTypes); static Method getMethod(Class<?> type, Class<?>... parameterTypes); static T newInstance(Class<T> classToInstantiate); static Constructor<T> getConstructor(Class<?> type, Class<?>... parameterTypes); static void setInternalState(Object object, String fieldName, Object value); static void setInternalState(Object object, String fieldName, Object[] value); static void setInternalState(Object object, Object value, Object... additionalValues); static void setInternalState(Object object, Object value, Class<?> where); static void setInternalState(Object object, String fieldName, Object value, Class<?> where); static void setInternalState(Object object, Class<?> fieldType, Object value); static void setInternalState(Object object, Class<?> fieldType, Object value, Class<?> where); static T getInternalState(Object object, String fieldName); static T getInternalState(Object object, String fieldName, Class<?> where); @Deprecated static T getInternalState(Object object, String fieldName, Class<?> where, Class<T> type); static T getInternalState(Object object, Class<T> fieldType); static T getInternalState(Object object, Class<T> fieldType, Class<?> where); static synchronized T invokeMethod(Object instance, Object... arguments); static synchronized T invokeMethod(Class<?> klass, Object... arguments); static synchronized T invokeMethod(Object instance, String methodToExecute, Object... arguments); static synchronized T invokeMethod(Object instance, String methodToExecute, Class<?>[] argumentTypes,
			Object... arguments); static synchronized T invokeMethod(Object instance, String methodToExecute, Class<?> definedIn,
			Class<?>[] argumentTypes, Object... arguments); static synchronized T invokeMethod(Object instance, Class<?> declaringClass, String methodToExecute,
			Object... arguments); static synchronized T invokeMethod(Object object, Class<?> declaringClass, String methodToExecute,
			Class<?>[] parameterTypes, Object... arguments); static synchronized T invokeMethod(Class<?> clazz, String methodToExecute, Object... arguments); static T invokeConstructor(Class<T> classThatContainsTheConstructorToTest, Class<?>[] parameterTypes,
			Object[] arguments); static T invokeConstructor(Class<T> classThatContainsTheConstructorToTest, Object... arguments); static Constructor<?> getFirstParentConstructor(Class<?> klass); static Method[] getMethods(Class<?> clazz, String... methodNames); static Class<?> getType(Object object); static Class<?> getUnproxyType(Object object); static Set<Field> getFieldsAnnotatedWith(Object object, Class<? extends Annotation> annotation,
			Class<? extends Annotation>... additionalAnnotations); static Set<Field> getFieldsAnnotatedWith(Object object, Class<? extends Annotation>[] annotationTypes); static Set<Field> getAllInstanceFields(Object object); static Set<Field> getAllStaticFields(Class<?> type); static Set<Field> getFieldsOfType(Object object, Class<?> type); static Class<Object> getInnerClassType(Class<?> declaringClass, String name); static Class<Object> getLocalClassType(Class<?> declaringClass, int occurrence, String name); static Class<Object> getAnonymousInnerClassType(Class<?> declaringClass, int occurrence); static void setInternalStateFromContext(Object instance, Object context, Object... additionalContexts); static void setInternalStateFromContext(Object classOrInstance, Class<?> context,
			Class<?>... additionalContexts); static void setInternalStateFromContext(Object instance, Object context, FieldMatchingStrategy strategy); static void setInternalStateFromContext(Object instance, Class<?> context, FieldMatchingStrategy strategy);  }