InsertableMethod extends Insertable { public String getInsertionBeforeMethod() { 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 testGetInsertionBeforeMethod_returns_null_by_default() { String insertionBeforeMethod = insertableMethodUnderTest.getInsertionBeforeMethod(); assertNull(insertionBeforeMethod); }