Class MockIssueHandler
java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.organization.MockIssueHandler
- All Implemented Interfaces:
IssueHandler
- Author:
- jvenstad
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProject(String projectKey, ProjectInfo projectInfo) booleanaddWatcher(IssueId issueId, String watcher) Reassign the issue with the given ID to the given user, and returns the outcome of this.assigneeOf(IssueId issueId) Returns the user assigned to the given issue, if any.voidAdd a comment to the issue with the given ID.Escalate an issue filed with the given property.File an issue with its given property or the default, and with the specific assignee, if present.findBySimilarity(Issue issue) Returns the ID of this issue, if it exists and is open, based on a similarity search.booleanReturns whether there has been significant activity on the issue within the given duration.booleanReturns whether the issue is still under investigation.booleanissueExists(Issue issue) Returns whether there exists an issue with an exactly matching summary.issues()projectInfo(String projectKey) Returns information about project identified by the project keybooleanReassign the issue with the given ID to the given user, and returns the outcome of this.voidUpdate the description of the issue with the given ID.
-
Constructor Details
-
MockIssueHandler
@Inject public MockIssueHandler() -
MockIssueHandler
-
-
Method Details
-
file
Description copied from interface:IssueHandlerFile an issue with its given property or the default, and with the specific assignee, if present.- Specified by:
filein interfaceIssueHandler- Parameters:
issue- The issue to file.- Returns:
- ID of the created issue.
-
findBySimilarity
Description copied from interface:IssueHandlerReturns the ID of this issue, if it exists and is open, based on a similarity search.- Specified by:
findBySimilarityin interfaceIssueHandler- Parameters:
issue- The issue to search for; relevant fields are the summary and the owner (propertyId).- Returns:
- ID of the issue, if it is found.
-
update
Description copied from interface:IssueHandlerUpdate the description of the issue with the given ID.- Specified by:
updatein interfaceIssueHandler- Parameters:
issueId- ID of the issue to comment on.description- The updated description.
-
commentOn
Description copied from interface:IssueHandlerAdd a comment to the issue with the given ID.- Specified by:
commentOnin interfaceIssueHandler- Parameters:
issueId- ID of the issue to comment on.comment- The comment to add.
-
isOpen
Description copied from interface:IssueHandlerReturns whether the issue is still under investigation.- Specified by:
isOpenin interfaceIssueHandler- Parameters:
issueId- ID of the issue to examine.- Returns:
- Whether the given issue is under investigation.
-
isActive
Description copied from interface:IssueHandlerReturns whether there has been significant activity on the issue within the given duration.- Specified by:
isActivein interfaceIssueHandler- Parameters:
issueId- ID of the issue to examine.- Returns:
- Whether the given issue is actively worked on.
-
assigneeOf
Description copied from interface:IssueHandlerReturns the user assigned to the given issue, if any.- Specified by:
assigneeOfin interfaceIssueHandler- Parameters:
issueId- ID of the issue for which to find the assignee.- Returns:
- The user responsible for fixing the given issue, if found.
-
reassign
Description copied from interface:IssueHandlerReassign the issue with the given ID to the given user, and returns the outcome of this.- Specified by:
reassignin interfaceIssueHandler- Parameters:
issueId- ID of the issue to be reassigned.assignee- User to which the issue shall be assigned.- Returns:
- Whether the reassignment was successful.
-
addWatcher
Description copied from interface:IssueHandlerReassign the issue with the given ID to the given user, and returns the outcome of this.- Specified by:
addWatcherin interfaceIssueHandler- Parameters:
issueId- ID of the issue to be watched.watcher- watcher to add to the issue.- Returns:
- Whether adding the watcher was successful.
-
escalate
Description copied from interface:IssueHandlerEscalate an issue filed with the given property.- Specified by:
escalatein interfaceIssueHandler- Parameters:
issueId- ID of the issue to escalate.- Returns:
- User that was assigned issue as a result of the escalation, if any
-
issueExists
Description copied from interface:IssueHandlerReturns whether there exists an issue with an exactly matching summary.- Specified by:
issueExistsin interfaceIssueHandler- Parameters:
issue- The summary of the issue.- Returns:
- Whether the issue exists.
-
projectInfo
Description copied from interface:IssueHandlerReturns information about project identified by the project key- Specified by:
projectInfoin interfaceIssueHandler- Parameters:
projectKey- The project key to find information for- Returns:
- Project info for project
-
close
-
issues
-
addProject
-