@Test public void testCustomBuildStatusHtml() throws JDOMException, IOException { framework = WebHookMockingFrameworkImpl.create(BuildStateEnum.BUILD_FINISHED, extraParameters); framework.loadWebHookConfigXml(new File("src/test/resources/project-settings-test-all-states-enabled-with-branch-and-custom-templates.xml")); WebHookPayloadContent content = framework.getWebHookContent(); System.out.println(content.getBuildStatusHtml()); assertTrue(content.getBuildStatusHtml().equals("master ATestProject")); }
public String getBuildStatusHtml() { return buildStatusHtml; }
WebHookPayloadContent { public String getBuildStatusHtml() { return buildStatusHtml; } }
WebHookPayloadContent { public String getBuildStatusHtml() { return buildStatusHtml; } WebHookPayloadContent(VariableResolverFactory variableResolverFactory, SBuildServer server, WebHookResponsibilityHolder responsibilityHolder, BuildStateEnum buildState, ExtraParameters extraParameters, Map<String,String> templates);  WebHookPayloadContent(VariableResolverFactory variableResolverFactory, SBuildServer server, SQueuedBuild sQueuedBuild, 
				BuildStateEnum buildState, ExtraParameters extraParameters, Map<String,String> templates, String user, String comment);  WebHookPayloadContent(VariableResolverFactory variableResolverFactory, SBuildServer server, SBuild sBuild, 
				BuildStateEnum buildState, 
				ExtraParameters extraParameters, 
				Map<String, String> customTemplates,
				String username,
				String comment);  WebHookPayloadContent(VariableResolverFactory variableResolverFactory, SBuildServer server, SBuild sRunningBuild, SFinishedBuild previousBuild, 
				BuildStateEnum buildState, 
				ExtraParameters extraParameters, 
				Map<String, String> customTemplates); }
WebHookPayloadContent { public String getBuildStatusHtml() { return buildStatusHtml; } WebHookPayloadContent(VariableResolverFactory variableResolverFactory, SBuildServer server, WebHookResponsibilityHolder responsibilityHolder, BuildStateEnum buildState, ExtraParameters extraParameters, Map<String,String> templates);  WebHookPayloadContent(VariableResolverFactory variableResolverFactory, SBuildServer server, SQueuedBuild sQueuedBuild, 
				BuildStateEnum buildState, ExtraParameters extraParameters, Map<String,String> templates, String user, String comment);  WebHookPayloadContent(VariableResolverFactory variableResolverFactory, SBuildServer server, SBuild sBuild, 
				BuildStateEnum buildState, 
				ExtraParameters extraParameters, 
				Map<String, String> customTemplates,
				String username,
				String comment);  WebHookPayloadContent(VariableResolverFactory variableResolverFactory, SBuildServer server, SBuild sRunningBuild, SFinishedBuild previousBuild, 
				BuildStateEnum buildState, 
				ExtraParameters extraParameters, 
				Map<String, String> customTemplates); void setResponsibilityInfo(WebHookResponsibilityHolder responsibilityHolder); WebHookResponsibility getResponsibilityInfo(); List<String> getBuildTags(); WebHooksComment getBuildComment(); List<WebHooksChanges> getChanges(); String getBuildInternalTypeId(); void setBuildInternalTypeId(String internalBuildId); String getBuildExternalTypeId(); void setBuildExternalTypeId(String externalBuildId); String getProjectInternalId(); void setProjectInternalId(String projectId); Branch getBranch(); void setBranch(Branch branch); String getBranchName(); void setBranchName(String branchName); String getBranchDisplayName(); void setBranchDisplayName(String displayName); Boolean getBranchIsDefault(); Boolean isBranchIsDefault(); void setBranchIsDefault(boolean branchIsDefault); String getBuildStatus(); void setBuildStatus(String buildStatus, BuildStateEnum buildState); String getBuildResult(); void setBuildResult(String buildResult); String getBuildResultPrevious(); void setBuildResultPrevious(String buildResultPrevious); String getBuildResultDelta(); void setBuildResultDelta(String buildResultDelta); String getNotifyType(); void setNotifyType(String notifyType); List<String> getBuildRunners(); void setBuildRunners(List<SBuildRunnerDescriptor> list); String getBuildFullName(); void setBuildFullName(String buildFullName); String getBuildName(); void setBuildName(String buildName); String getBuildId(); void setBuildId(String buildId); String getBuildTypeId(); void setBuildTypeId(String buildTypeId); String getProjectName(); void setProjectName(String projectName); String getProjectId(); void setProjectId(String projectId); String getProjectExternalId(); void setProjectExternalId(String projectExternalId); String getBuildNumber(); void setBuildNumber(String buildNumber); String getAgentName(); void setAgentName(String agentName); String getAgentOs(); void setAgentOs(String agentOs); String getAgentHostname(); void setAgentHostname(String agentHostname); String getTriggeredBy(); void setTriggeredBy(String triggeredBy); String getBuildStatusUrl(); void setBuildStatusUrl(String buildStatusUrl); String getRootUrl(); void setRootUrl(String rootUrl); String getBuildStateDescription(); void setBuildStateDescription(String buildStateDescription); String getBuildStatusHtml(); void setBuildStatusHtml(String buildStatusHtml); String getBuildStartTime(); void setBuildStartTime(String timeString); String getBuildFinishTime(); void setBuildFinishTime(String finishTime); String getCurrentTime(); void setCurrentTime(String now); String getComment(); void setComment(String comment); String getMessage(); void setMessage(String message); String getText(); void setText(String text); String getPinEventUsername(); void setResponsibilityUserOld(String responsibilityUserOld); void setResponsibilityUserNew(String responsibilityUserNew); String getResponsibilityUserOld(); String getResponsibilityUserNew(); ExtraParameters getAllParameters(); ExtraParameters getExtraParameters(VariableResolverFactory variableResolverFactory); void setExtraParameters(SortedMap<String, String> extraParameters); }
WebHookPayloadContent { public String getBuildStatusHtml() { return buildStatusHtml; } WebHookPayloadContent(VariableResolverFactory variableResolverFactory, SBuildServer server, WebHookResponsibilityHolder responsibilityHolder, BuildStateEnum buildState, ExtraParameters extraParameters, Map<String,String> templates);  WebHookPayloadContent(VariableResolverFactory variableResolverFactory, SBuildServer server, SQueuedBuild sQueuedBuild, 
				BuildStateEnum buildState, ExtraParameters extraParameters, Map<String,String> templates, String user, String comment);  WebHookPayloadContent(VariableResolverFactory variableResolverFactory, SBuildServer server, SBuild sBuild, 
				BuildStateEnum buildState, 
				ExtraParameters extraParameters, 
				Map<String, String> customTemplates,
				String username,
				String comment);  WebHookPayloadContent(VariableResolverFactory variableResolverFactory, SBuildServer server, SBuild sRunningBuild, SFinishedBuild previousBuild, 
				BuildStateEnum buildState, 
				ExtraParameters extraParameters, 
				Map<String, String> customTemplates); void setResponsibilityInfo(WebHookResponsibilityHolder responsibilityHolder); WebHookResponsibility getResponsibilityInfo(); List<String> getBuildTags(); WebHooksComment getBuildComment(); List<WebHooksChanges> getChanges(); String getBuildInternalTypeId(); void setBuildInternalTypeId(String internalBuildId); String getBuildExternalTypeId(); void setBuildExternalTypeId(String externalBuildId); String getProjectInternalId(); void setProjectInternalId(String projectId); Branch getBranch(); void setBranch(Branch branch); String getBranchName(); void setBranchName(String branchName); String getBranchDisplayName(); void setBranchDisplayName(String displayName); Boolean getBranchIsDefault(); Boolean isBranchIsDefault(); void setBranchIsDefault(boolean branchIsDefault); String getBuildStatus(); void setBuildStatus(String buildStatus, BuildStateEnum buildState); String getBuildResult(); void setBuildResult(String buildResult); String getBuildResultPrevious(); void setBuildResultPrevious(String buildResultPrevious); String getBuildResultDelta(); void setBuildResultDelta(String buildResultDelta); String getNotifyType(); void setNotifyType(String notifyType); List<String> getBuildRunners(); void setBuildRunners(List<SBuildRunnerDescriptor> list); String getBuildFullName(); void setBuildFullName(String buildFullName); String getBuildName(); void setBuildName(String buildName); String getBuildId(); void setBuildId(String buildId); String getBuildTypeId(); void setBuildTypeId(String buildTypeId); String getProjectName(); void setProjectName(String projectName); String getProjectId(); void setProjectId(String projectId); String getProjectExternalId(); void setProjectExternalId(String projectExternalId); String getBuildNumber(); void setBuildNumber(String buildNumber); String getAgentName(); void setAgentName(String agentName); String getAgentOs(); void setAgentOs(String agentOs); String getAgentHostname(); void setAgentHostname(String agentHostname); String getTriggeredBy(); void setTriggeredBy(String triggeredBy); String getBuildStatusUrl(); void setBuildStatusUrl(String buildStatusUrl); String getRootUrl(); void setRootUrl(String rootUrl); String getBuildStateDescription(); void setBuildStateDescription(String buildStateDescription); String getBuildStatusHtml(); void setBuildStatusHtml(String buildStatusHtml); String getBuildStartTime(); void setBuildStartTime(String timeString); String getBuildFinishTime(); void setBuildFinishTime(String finishTime); String getCurrentTime(); void setCurrentTime(String now); String getComment(); void setComment(String comment); String getMessage(); void setMessage(String message); String getText(); void setText(String text); String getPinEventUsername(); void setResponsibilityUserOld(String responsibilityUserOld); void setResponsibilityUserNew(String responsibilityUserNew); String getResponsibilityUserOld(); String getResponsibilityUserNew(); ExtraParameters getAllParameters(); ExtraParameters getExtraParameters(VariableResolverFactory variableResolverFactory); void setExtraParameters(SortedMap<String, String> extraParameters);  }