use of com.palantir.stash.stashbot.persistence.JobTemplate in project stashbot by palantir.
the class MockJobTemplateFactory method generateDefaultsForRepo.
public void generateDefaultsForRepo(Repository repo, RepositoryConfiguration rc) throws Exception {
JobTemplate verifyCommit = getJobTemplate(repo, rc, JobType.VERIFY_COMMIT);
JobTemplate verifyPR = getJobTemplate(repo, rc, JobType.VERIFY_PR);
JobTemplate publish = getJobTemplate(repo, rc, JobType.PUBLISH);
Mockito.when(jtm.getDefaultVerifyJob()).thenReturn(verifyCommit);
Mockito.when(jtm.getDefaultVerifyPullRequestJob()).thenReturn(verifyPR);
Mockito.when(jtm.getDefaultPublishJob()).thenReturn(publish);
}
Aggregations