Search in sources :

Example 1 with ProductMilestoneReleaseManager

use of org.jboss.pnc.bpm.causeway.ProductMilestoneReleaseManager in project pnc by project-ncl.

the class ProductMilestoneReleaseManagerTest method setUp.

@Before
public void setUp() throws CoreException {
    milestoneRepository = new ProductMilestoneRepositoryMock();
    productMilestoneReleaseRepository = new ProductMilestoneReleaseRepositoryMock();
    buildRecordRepository = new BuildRecordRepositoryMock();
    buildRecordPushResultRepository = new BuildRecordPushResultRepositoryMock();
    MockitoAnnotations.initMocks(this);
    when(bpmManager.startTask(any())).then(taskCapture);
    releaseManager = new ProductMilestoneReleaseManager(productMilestoneReleaseRepository, bpmManager, new ProductVersionRepositoryMock(), buildRecordRepository, milestoneRepository, buildRecordPushResultRepository, mapper, productMilestoneCloseResultEvent, null, null);
}
Also used : ProductMilestoneReleaseManager(org.jboss.pnc.bpm.causeway.ProductMilestoneReleaseManager) Before(org.junit.Before)

Aggregations

ProductMilestoneReleaseManager (org.jboss.pnc.bpm.causeway.ProductMilestoneReleaseManager)1 Before (org.junit.Before)1