MissingDocumentation extends ItemDocumentation { public MissingDocumentation(String id) { super(id); setDescription(new Description(MESSAGE)); } MissingDocumentation(String id); boolean isDocumented(); @Override String toString(); static final String MESSAGE; }
@Test public void testMissingDocumentation() { String id = "xyz"; MissingDocumentation md = new MissingDocumentation(id); assertEquals(id, md.getId()); assertEquals(MissingDocumentation.MESSAGE, md.getDescription().joinText("")); }