Class MockNotificator
- java.lang.Object
-
- jetbrains.buildServer.notification.NotificatorAdapter
-
- jetbrains.buildServer.notification.MockNotificator
-
- All Implemented Interfaces:
Notificator
public class MockNotificator extends NotificatorAdapter
- Author:
- Kir
-
-
Constructor Summary
Constructors Constructor Description MockNotificator(String notificatorType)MockNotificator(String notificatorType, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayName()Notificator display name.StringgetNotificatorType()Unique type of the notificator.voidnotifyBuildFailed(SRunningBuild buildId, Set<SUser> users)Called when build failed.voidnotifyBuildFailedToStart(SRunningBuild build, Set<SUser> users)Called when build failed with internal error, i.e.voidnotifyBuildFailing(SRunningBuild buildId, Set<SUser> users)Called when the first failed message occurred.voidnotifyBuildStarted(SRunningBuild build, Set<SUser> users)Called when new build started.voidnotifyBuildSuccessful(SRunningBuild buildId, Set<SUser> users)Called when build finished successfully.voidnotifyLabelingFailed(Build build, VcsRoot root, Throwable exception, Set<SUser> users)Called when labeling failed for the build.voidnotifyResponsibleAssigned(Collection<TestName> testNames, ResponsibilityEntry entry, SProject project, Set<SUser> users)Called when responsibility for several tests at once is assigned.voidnotifyResponsibleAssigned(TestNameResponsibilityEntry oldValue, TestNameResponsibilityEntry newValue, SProject project, Set<SUser> users)Called when responsibility for the test is assigned on certain users.voidnotifyResponsibleAssigned(SBuildType buildType, Set<SUser> users)Called when responsibility for the build type is assigned on certain users.voidnotifyResponsibleChanged(Collection<TestName> testNames, ResponsibilityEntry entry, SProject project, Set<SUser> users)Called when responsibility for several tests at once is changed.voidnotifyResponsibleChanged(TestNameResponsibilityEntry oldValue, TestNameResponsibilityEntry newValue, SProject project, Set<SUser> users)Called when responsibility for the test changed.voidnotifyResponsibleChanged(SBuildType buildType, Set<SUser> users)Called when responsibility for configuration changed.voidnotifyTestsMuted(Collection<STest> tests, MuteInfo muteInfo, Set<SUser> users)Called when a set of tests are unmuted (with same mute properties).voidnotifyTestsUnmuted(Collection<STest> tests, MuteInfo muteInfo, SUser user, Set<SUser> users)Called when a set of tests are unmuted (with same mute properties).-
Methods inherited from class jetbrains.buildServer.notification.NotificatorAdapter
notifyBuildProbablyHanging, notifyBuildProblemResponsibleAssigned, notifyBuildProblemResponsibleChanged, notifyBuildProblemsMuted, notifyBuildProblemsUnmuted, notifyQueuedBuildWaitingForApproval
-
-
-
-
Method Detail
-
getDisplayName
@NotNull public String getDisplayName()
Description copied from interface:NotificatorNotificator display name.- Specified by:
getDisplayNamein interfaceNotificator- Overrides:
getDisplayNamein classNotificatorAdapter- Returns:
- notificator display name.
-
notifyBuildStarted
public void notifyBuildStarted(@NotNull SRunningBuild build, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when new build started.- Specified by:
notifyBuildStartedin interfaceNotificator- Overrides:
notifyBuildStartedin classNotificatorAdapter- Parameters:
build- started build.users- users to be notified.
-
notifyBuildSuccessful
public void notifyBuildSuccessful(@NotNull SRunningBuild buildId, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when build finished successfully.- Specified by:
notifyBuildSuccessfulin interfaceNotificator- Overrides:
notifyBuildSuccessfulin classNotificatorAdapter- Parameters:
buildId- finished build.users- users to be notified.
-
notifyBuildFailed
public void notifyBuildFailed(@NotNull SRunningBuild buildId, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when build failed.- Specified by:
notifyBuildFailedin interfaceNotificator- Overrides:
notifyBuildFailedin classNotificatorAdapter- Parameters:
buildId- finished buildusers- users to be notified.
-
notifyBuildFailedToStart
public void notifyBuildFailedToStart(@NotNull SRunningBuild build, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when build failed with internal error, i.e. could not actually start.- Specified by:
notifyBuildFailedToStartin interfaceNotificator- Overrides:
notifyBuildFailedToStartin classNotificatorAdapter- Parameters:
build- failed buildusers- users to be notified
-
notifyBuildFailing
public void notifyBuildFailing(@NotNull SRunningBuild buildId, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when the first failed message occurred.- Specified by:
notifyBuildFailingin interfaceNotificator- Overrides:
notifyBuildFailingin classNotificatorAdapter- Parameters:
buildId- running build.users- users to be notified.
-
notifyResponsibleChanged
public void notifyResponsibleChanged(@NotNull SBuildType buildType, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when responsibility for configuration changed.- Specified by:
notifyResponsibleChangedin interfaceNotificator- Overrides:
notifyResponsibleChangedin classNotificatorAdapter- Parameters:
buildType- configuration.users- users to be notified.
-
notifyResponsibleAssigned
public void notifyResponsibleAssigned(@NotNull SBuildType buildType, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when responsibility for the build type is assigned on certain users.- Specified by:
notifyResponsibleAssignedin interfaceNotificator- Overrides:
notifyResponsibleAssignedin classNotificatorAdapter- Parameters:
buildType- configuration.users- users to be notified.
-
notifyLabelingFailed
public void notifyLabelingFailed(@NotNull Build build, @NotNull VcsRoot root, @NotNull Throwable exception, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when labeling failed for the build.- Specified by:
notifyLabelingFailedin interfaceNotificator- Overrides:
notifyLabelingFailedin classNotificatorAdapter- Parameters:
build- finished build.root- problem root.exception- cause.users- users to be notified.
-
notifyResponsibleChanged
public void notifyResponsibleChanged(@Nullable TestNameResponsibilityEntry oldValue, @NotNull TestNameResponsibilityEntry newValue, @NotNull SProject project, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when responsibility for the test changed.- Specified by:
notifyResponsibleChangedin interfaceNotificator- Overrides:
notifyResponsibleChangedin classNotificatorAdapter- Parameters:
oldValue- old responsibility entry (nullable).newValue- new responsibility entry.project- the project.users- users to be notified.
-
notifyResponsibleAssigned
public void notifyResponsibleAssigned(@Nullable TestNameResponsibilityEntry oldValue, @NotNull TestNameResponsibilityEntry newValue, @NotNull SProject project, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when responsibility for the test is assigned on certain users.- Specified by:
notifyResponsibleAssignedin interfaceNotificator- Overrides:
notifyResponsibleAssignedin classNotificatorAdapter- Parameters:
oldValue- old responsibility entry (nullable).newValue- new responsibility entry.project- the project.users- users to be notified.
-
notifyResponsibleChanged
public void notifyResponsibleChanged(@NotNull Collection<TestName> testNames, @NotNull ResponsibilityEntry entry, @NotNull SProject project, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when responsibility for several tests at once is changed.- Specified by:
notifyResponsibleChangedin interfaceNotificator- Overrides:
notifyResponsibleChangedin classNotificatorAdapter- Parameters:
testNames- the collection of test namesentry- new responsibility entry for each testproject- the projectusers- users to be notified
-
notifyResponsibleAssigned
public void notifyResponsibleAssigned(@NotNull Collection<TestName> testNames, @NotNull ResponsibilityEntry entry, @NotNull SProject project, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when responsibility for several tests at once is assigned.- Specified by:
notifyResponsibleAssignedin interfaceNotificator- Overrides:
notifyResponsibleAssignedin classNotificatorAdapter- Parameters:
testNames- the collection of test namesentry- new responsibility entry for each testproject- the projectusers- users to be notified
-
notifyTestsMuted
public void notifyTestsMuted(@NotNull Collection<STest> tests, @NotNull MuteInfo muteInfo, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when a set of tests are unmuted (with same mute properties). All tests are in the same project.- Specified by:
notifyTestsMutedin interfaceNotificator- Overrides:
notifyTestsMutedin classNotificatorAdapter- Parameters:
tests- the unmuted testsmuteInfo- the mute info on the moment of unmuteusers- users to be notified
-
notifyTestsUnmuted
public void notifyTestsUnmuted(@NotNull Collection<STest> tests, @NotNull MuteInfo muteInfo, @Nullable SUser user, @NotNull Set<SUser> users)Description copied from interface:NotificatorCalled when a set of tests are unmuted (with same mute properties). All tests are in the same project.- Specified by:
notifyTestsUnmutedin interfaceNotificator- Overrides:
notifyTestsUnmutedin classNotificatorAdapter- Parameters:
tests- the unmuted testsuser- user who performed the action (if known)users- users to be notified
-
getNotificatorType
@NotNull @NonNls public String getNotificatorType()
Description copied from interface:NotificatorUnique type of the notificator.- Returns:
- notificator unique key.
-
-