@Test @Ignore public void testBuildFinishedSRunningBuildSuccessAfterSuccess() throws FileNotFoundException, IOException { BuildState state = new BuildState(); state.enable(BuildStateEnum.BUILD_FIXED); projSettings.addNewWebHook("1234", "MyProject", "http: when(webhook.isEnabled()).thenReturn(state.enabled(BuildStateEnum.BUILD_FIXED)); when(buildHistory.getEntriesBefore(sRunningBuild, false)).thenReturn(finishedSuccessfulBuilds); whl.buildFinished(sRunningBuild); verify(factory.getWebHook(webHookConfig,null), times(0)).post(); }
@Override public void buildFinished(SRunningBuild sRunningBuild){ processBuildEvent(sRunningBuild, BuildStateEnum.BUILD_FINISHED); }
WebHookListener extends BuildServerAdapter { @Override public void buildFinished(SRunningBuild sRunningBuild){ processBuildEvent(sRunningBuild, BuildStateEnum.BUILD_FINISHED); } }
WebHookListener extends BuildServerAdapter { @Override public void buildFinished(SRunningBuild sRunningBuild){ processBuildEvent(sRunningBuild, BuildStateEnum.BUILD_FINISHED); } WebHookListener(SBuildServer sBuildServer, WebHookSettingsManager settings, 
    						WebHookMainSettings configSettings, WebHookTemplateManager manager,
    						WebHookFactory factory, WebHookTemplateResolver resolver,
    						WebHookContentBuilder contentBuilder, WebHookHistoryRepository historyRepository,
    						WebHookHistoryItemFactory historyItemFactory,
    						WebHookExecutor executor); }
WebHookListener extends BuildServerAdapter { @Override public void buildFinished(SRunningBuild sRunningBuild){ processBuildEvent(sRunningBuild, BuildStateEnum.BUILD_FINISHED); } WebHookListener(SBuildServer sBuildServer, WebHookSettingsManager settings, 
    						WebHookMainSettings configSettings, WebHookTemplateManager manager,
    						WebHookFactory factory, WebHookTemplateResolver resolver,
    						WebHookContentBuilder contentBuilder, WebHookHistoryRepository historyRepository,
    						WebHookHistoryItemFactory historyItemFactory,
    						WebHookExecutor executor); void register(); @Override void buildStarted(SRunningBuild sRunningBuild); @Override void changesLoaded(SRunningBuild sRunningBuild); @Override void buildFinished(SRunningBuild sRunningBuild); @Override void buildInterrupted(SRunningBuild sRunningBuild); @Override void beforeBuildFinish(SRunningBuild sRunningBuild); @Override void responsibleChanged(
			SProject project,
			Collection<TestName> testNames, 
			ResponsibilityEntry entry,
			boolean isUserAction); @Override void responsibleChanged(@NotNull SBuildType sBuildType,
            @NotNull ResponsibilityEntry responsibilityEntryOld,
            @NotNull ResponsibilityEntry responsibilityEntryNew); @Override void responsibleChanged(
			@NotNull SProject project,
            @NotNull Collection<BuildProblemInfo> buildProblems,
            @Nullable ResponsibilityEntry entry); @Override void responsibleRemoved(
			SProject project, 
			TestNameResponsibilityEntry entry); @Override void buildProblemsChanged(SBuild build, List<BuildProblemData> before, List<BuildProblemData> after); @Override void buildTypeAddedToQueue(SQueuedBuild queuedBuild); @Override void buildRemovedFromQueue(SQueuedBuild queuedBuild, User user, String comment); @Override void buildPinned(SBuild build, User user, String comment); @Override void buildUnpinned(SBuild build, User user, String comment); @Override void serverStartup(); }
WebHookListener extends BuildServerAdapter { @Override public void buildFinished(SRunningBuild sRunningBuild){ processBuildEvent(sRunningBuild, BuildStateEnum.BUILD_FINISHED); } WebHookListener(SBuildServer sBuildServer, WebHookSettingsManager settings, 
    						WebHookMainSettings configSettings, WebHookTemplateManager manager,
    						WebHookFactory factory, WebHookTemplateResolver resolver,
    						WebHookContentBuilder contentBuilder, WebHookHistoryRepository historyRepository,
    						WebHookHistoryItemFactory historyItemFactory,
    						WebHookExecutor executor); void register(); @Override void buildStarted(SRunningBuild sRunningBuild); @Override void changesLoaded(SRunningBuild sRunningBuild); @Override void buildFinished(SRunningBuild sRunningBuild); @Override void buildInterrupted(SRunningBuild sRunningBuild); @Override void beforeBuildFinish(SRunningBuild sRunningBuild); @Override void responsibleChanged(
			SProject project,
			Collection<TestName> testNames, 
			ResponsibilityEntry entry,
			boolean isUserAction); @Override void responsibleChanged(@NotNull SBuildType sBuildType,
            @NotNull ResponsibilityEntry responsibilityEntryOld,
            @NotNull ResponsibilityEntry responsibilityEntryNew); @Override void responsibleChanged(
			@NotNull SProject project,
            @NotNull Collection<BuildProblemInfo> buildProblems,
            @Nullable ResponsibilityEntry entry); @Override void responsibleRemoved(
			SProject project, 
			TestNameResponsibilityEntry entry); @Override void buildProblemsChanged(SBuild build, List<BuildProblemData> before, List<BuildProblemData> after); @Override void buildTypeAddedToQueue(SQueuedBuild queuedBuild); @Override void buildRemovedFromQueue(SQueuedBuild queuedBuild, User user, String comment); @Override void buildPinned(SBuild build, User user, String comment); @Override void buildUnpinned(SBuild build, User user, String comment); @Override void serverStartup(); static final String WEBHOOKS_SETTINGS_ATTRIBUTE_NAME; }