use of samples.suppressmethod.SuppressMethodExample in project powermock by powermock.
the class SuppressMethodTest method suppressAllMethodsInMultipleClasses.
@Test
public void suppressAllMethodsInMultipleClasses() throws Exception {
suppress(methodsDeclaredIn(SuppressMethod.class, SuppressMethodExample.class));
SuppressMethod tested1 = new SuppressMethod();
SuppressMethodExample tested2 = new SuppressMethodExample();
// Should not cause an NPE when suppressing code.
tested1.invokeVoid(null);
assertNull(tested1.getObject());
assertEquals(0, tested1.getInt());
assertNull(tested2.getObject());
}
Aggregations