use of org.jboss.pnc.bpm.causeway.BuildResultPushManager in project pnc by project-ncl.
the class BuildResultPushManagerTest method setUp.
@Before
public void setUp() throws CoreException, GerritException {
when(buildConfigurationAuditedRepository.queryById(any(IdRev.class))).thenReturn(buildConfigurationAudited);
when(causewayClient.importBuild(any(), any())).thenReturn(true);
when(gerrit.generateDownloadUrlWithGerritGitweb(any(), any())).thenReturn("https://example.com/foo.tar.gz");
buildRecordRepository = new BuildRecordRepositoryMock();
buildRecordPushResultRepository = new BuildRecordPushResultRepositoryMock();
releaseManager = new BuildResultPushManager(buildConfigurationAuditedRepository, buildRecordPushResultRepository, null, new InProgress(), buildRecordPushResultRestEvent, artifactRepository, gerrit, causewayClient);
}
Aggregations