InsertableMethod extends Insertable { public String getInsertionAfterMethod() { return null; } InsertableMethod(CtClass classToInsertInto); String getInsertionBeforeMethod(); String getInsertionAfterMethod(); abstract String getFullMethod(); abstract String getBody(); abstract String getTargetMethodName(); String toString(); static final String BODY_TAG; }
@Test public void testGetInsertionAfterMethod_returns_null_by_default() { String insertionAfterMethod = insertableMethodUnderTest.getInsertionAfterMethod(); assertNull(insertionAfterMethod); }