use of jetbrains.buildServer.server.rest.data.problem.scope.TestScopesCollector in project teamcity-rest by JetBrains.
the class BaseTestScopesCollectorTest method setUp.
@BeforeMethod(alwaysRun = true)
@Override
protected void setUp() throws Exception {
super.setUp();
myTimeCondition = new TimeCondition(myFixture);
myFixture.addService(myTimeCondition);
myPermissionChecker = new PermissionChecker(myServer.getSecurityContext(), myProjectManager);
myFixture.addService(myPermissionChecker);
myProjectFinder = new ProjectFinder(myProjectManager, myPermissionChecker, myServer);
myFixture.addService(myProjectFinder);
myGroupFinder = new UserGroupFinder(getUserGroupManager());
myFixture.addService(myGroupFinder);
myUserFinder = new UserFinder(getUserModelEx(), myGroupFinder, myProjectFinder, myTimeCondition, myFixture.getRolesManager(), myPermissionChecker, myServer.getSecurityContext(), myServer);
myAgentFinder = new AgentFinder(myAgentManager, myFixture);
myFixture.addService(myAgentFinder);
myBuildTypeFinder = new BuildTypeFinder(myProjectManager, myProjectFinder, myAgentFinder, myPermissionChecker, myFixture);
myBranchFinder = new BranchFinder(myBuildTypeFinder, myFixture);
final VcsRootIdentifiersManagerImpl vcsRootIdentifiersManager = myFixture.getSingletonService(VcsRootIdentifiersManagerImpl.class);
myVcsRootFinder = new VcsRootFinder(myFixture.getVcsManager(), myProjectFinder, myBuildTypeFinder, myProjectManager, vcsRootIdentifiersManager, myPermissionChecker);
myFixture.addService(myVcsRootFinder);
myBuildPromotionFinder = new BuildPromotionFinder(myFixture.getBuildPromotionManager(), myFixture.getBuildQueue(), myServer, myVcsRootFinder, myProjectFinder, myBuildTypeFinder, myUserFinder, myAgentFinder, myBranchFinder, myTimeCondition, myPermissionChecker, null, myFixture);
myFixture.addService(myBuildPromotionFinder);
myBuildFinder = new BuildFinder(myFixture, myBuildTypeFinder, myProjectFinder, myUserFinder, myBuildPromotionFinder, myAgentFinder);
final TestName2Index testName2Index = myFixture.getSingletonService(TestName2Index.class);
final ProblemMutingService problemMutingService = myFixture.getSingletonService(ProblemMutingService.class);
myTestFinder = new TestFinder(myProjectFinder, myBuildTypeFinder, myBuildPromotionFinder, myFixture.getTestManager(), testName2Index, myFixture.getCurrentProblemsManager(), problemMutingService);
myFixture.addService(myTestFinder);
TestScopeFilterProducer testScopesFilterProducer = new TestScopeFilterProducer(myBuildTypeFinder);
final CurrentProblemsManager currentProblemsManager = myServer.getSingletonService(CurrentProblemsManager.class);
myTestOccurrenceFinder = new TestOccurrenceFinder(myServer.getSecurityContext(), myTestFinder, myBuildFinder, myBuildTypeFinder, myProjectFinder, myFixture.getTestsHistory(), currentProblemsManager, myBranchFinder, testScopesFilterProducer);
myFixture.addService(myTestOccurrenceFinder);
myTestScopesCollector = new TestScopesCollector(myTestOccurrenceFinder, testScopesFilterProducer);
}
Aggregations