use of org.powermock.reflect.testclasses.ClassWithInternalState in project powermock by powermock.
the class WhiteBoxTest method testSetInternalState.
@Test
public void testSetInternalState() throws Exception {
ClassWithInternalState tested = new ClassWithInternalState();
tested.increaseInteralState();
Whitebox.setInternalState(tested, "anotherInternalState", 2);
assertEquals(2, tested.getAnotherInternalState());
}
Aggregations