use of org.powermock.reflect.testclasses.ClassWithPrivateMethods in project powermock by powermock.
the class WhiteBoxTest method testInvokePrivateMethodWithAClassArgument.
@Test
public void testInvokePrivateMethodWithAClassArgument() throws Exception {
ClassWithPrivateMethods tested = new ClassWithPrivateMethods();
assertEquals(ClassWithChildThatHasInternalState.class, Whitebox.invokeMethod(tested, "methodWithClassArgument", ClassWithChildThatHasInternalState.class));
}
Aggregations