@Test public void testIsRegisteredFormat() { assertEquals(true, manager.isRegisteredFormat("one")); assertEquals(false, manager.isRegisteredFormat("none")); }
public Boolean isRegisteredFormat(String format){ return formats.containsKey(format.toLowerCase()); }
WebHookPayloadManager { public Boolean isRegisteredFormat(String format){ return formats.containsKey(format.toLowerCase()); } }
WebHookPayloadManager { public Boolean isRegisteredFormat(String format){ return formats.containsKey(format.toLowerCase()); } WebHookPayloadManager(SBuildServer server); }
WebHookPayloadManager { public Boolean isRegisteredFormat(String format){ return formats.containsKey(format.toLowerCase()); } WebHookPayloadManager(SBuildServer server); void registerPayloadFormat(WebHookPayload payloadFormat); WebHookPayload getFormat(String formatShortname); Boolean isRegisteredFormat(String format); List<WebHookPayload> getRegisteredFormats(); List<WebHookPayload> getTemplatedFormats(); Collection<WebHookPayload> getRegisteredFormatsAsCollection(); SBuildServer getServer(); }
WebHookPayloadManager { public Boolean isRegisteredFormat(String format){ return formats.containsKey(format.toLowerCase()); } WebHookPayloadManager(SBuildServer server); void registerPayloadFormat(WebHookPayload payloadFormat); WebHookPayload getFormat(String formatShortname); Boolean isRegisteredFormat(String format); List<WebHookPayload> getRegisteredFormats(); List<WebHookPayload> getTemplatedFormats(); Collection<WebHookPayload> getRegisteredFormatsAsCollection(); SBuildServer getServer();  }