@Test public void testSuppressConstructorHierarchy() throws Exception { suppress(constructor(EvilParent.class)); final String message = "myMessage"; ExampleWithEvilParentAndEvilGrandParent tested = new ExampleWithEvilParentAndEvilGrandParent(message); assertEquals(message, tested.getMessage()); }
public String getMessage() { return message; }
ExampleWithEvilParentAndEvilGrandParent extends EvilParent { public String getMessage() { return message; } }
ExampleWithEvilParentAndEvilGrandParent extends EvilParent { public String getMessage() { return message; } ExampleWithEvilParentAndEvilGrandParent(String message); }
ExampleWithEvilParentAndEvilGrandParent extends EvilParent { public String getMessage() { return message; } ExampleWithEvilParentAndEvilGrandParent(String message); String getMessage(); }
ExampleWithEvilParentAndEvilGrandParent extends EvilParent { public String getMessage() { return message; } ExampleWithEvilParentAndEvilGrandParent(String message); String getMessage();  }