Search in sources :

Example 1 with TestScopesCollector

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);
}
Also used : TestScopesCollector(jetbrains.buildServer.server.rest.data.problem.scope.TestScopesCollector) CurrentProblemsManager(jetbrains.buildServer.serverSide.CurrentProblemsManager) VcsRootIdentifiersManagerImpl(jetbrains.buildServer.serverSide.identifiers.VcsRootIdentifiersManagerImpl) TestName2Index(jetbrains.buildServer.serverSide.TestName2Index) TestOccurrenceFinder(jetbrains.buildServer.server.rest.data.problem.TestOccurrenceFinder) TestScopeFilterProducer(jetbrains.buildServer.server.rest.data.problem.scope.TestScopeFilterProducer) TestFinder(jetbrains.buildServer.server.rest.data.problem.TestFinder) ProblemMutingService(jetbrains.buildServer.serverSide.mute.ProblemMutingService) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

TestFinder (jetbrains.buildServer.server.rest.data.problem.TestFinder)1 TestOccurrenceFinder (jetbrains.buildServer.server.rest.data.problem.TestOccurrenceFinder)1 TestScopeFilterProducer (jetbrains.buildServer.server.rest.data.problem.scope.TestScopeFilterProducer)1 TestScopesCollector (jetbrains.buildServer.server.rest.data.problem.scope.TestScopesCollector)1 CurrentProblemsManager (jetbrains.buildServer.serverSide.CurrentProblemsManager)1 TestName2Index (jetbrains.buildServer.serverSide.TestName2Index)1 VcsRootIdentifiersManagerImpl (jetbrains.buildServer.serverSide.identifiers.VcsRootIdentifiersManagerImpl)1 ProblemMutingService (jetbrains.buildServer.serverSide.mute.ProblemMutingService)1 BeforeMethod (org.testng.annotations.BeforeMethod)1