JsonHandler extends HandlerBase { @Override public void show() { _level--; } JsonHandler();  JsonHandler(String name, String release, int[] date, String note, String rights); @Override void show(); @Override void show(App app); @Override void show(OutputHandler handler); @Override void show(Module module); @Override void show(RepInfo info); @Override void showFooter(); @Override void showHeader();  }
@Test public void testShow() { handler.showHeader(); handler.show(); handler.showFooter(); handler.close(); String result = outString.toString().replaceAll(TIME_PATTERN, DUMMY) .replaceAll(DATE_PATTERN, DATE_REPLACEMENT) .replaceAll(RELEASE_PATTERN, RELEASE_REPLACEMENT); assertEquals( "{\"jhove\":{" + APP_JSON + "}}", result); }