/** Check the media type of this extension class */ public void testMediaTypeIsHtml() { AdminList ext = new AdminList(); assertTrue( "The media type of this extension should be html", ext.getMediaType().equals(MEDIA_TYPE.html)); }
/** Get the links for the extension class */ public void testValidatesLinks() { AdminList ext = new AdminList(); Map<String, String> links = ext.getLinks(); assertNotNull("Some links should be returned", links); assertTrue("There should be a positive number of links", links.values().size() > 0); }