@Test public void testRegister() { SBuildServer mockServer = mock(SBuildServer.class); when(mockServer.getRootUrl()).thenReturn("http: WebHookPayloadManager wpm = new WebHookPayloadManager(mockServer); WebHookPayloadJsonVelocityTemplate whp = new WebHookPayloadJsonVelocityTemplate(wpm, variableResolverManager); whp.register(); assertEquals(whp, wpm.getFormat(whp.getFormatShortName())); }
@Override public String getFormatShortName() { return FORMAT_SHORT_NAME; }
WebHookPayloadJsonVelocityTemplate extends WebHookPayloadJsonTemplate implements WebHookPayload, WebHookContentObjectSerialiser { @Override public String getFormatShortName() { return FORMAT_SHORT_NAME; } }
WebHookPayloadJsonVelocityTemplate extends WebHookPayloadJsonTemplate implements WebHookPayload, WebHookContentObjectSerialiser { @Override public String getFormatShortName() { return FORMAT_SHORT_NAME; } WebHookPayloadJsonVelocityTemplate(WebHookPayloadManager manager, WebHookVariableResolverManager variableResolverManager); }
WebHookPayloadJsonVelocityTemplate extends WebHookPayloadJsonTemplate implements WebHookPayload, WebHookContentObjectSerialiser { @Override public String getFormatShortName() { return FORMAT_SHORT_NAME; } WebHookPayloadJsonVelocityTemplate(WebHookPayloadManager manager, WebHookVariableResolverManager variableResolverManager); @Override String getFormatShortName(); @Override String getFormatDescription(); @Override String getFormatToolTipText(); @Override PayloadTemplateEngineType getTemplateEngineType(); }
WebHookPayloadJsonVelocityTemplate extends WebHookPayloadJsonTemplate implements WebHookPayload, WebHookContentObjectSerialiser { @Override public String getFormatShortName() { return FORMAT_SHORT_NAME; } WebHookPayloadJsonVelocityTemplate(WebHookPayloadManager manager, WebHookVariableResolverManager variableResolverManager); @Override String getFormatShortName(); @Override String getFormatDescription(); @Override String getFormatToolTipText(); @Override PayloadTemplateEngineType getTemplateEngineType(); static final String FORMAT_SHORT_NAME; }