Search in sources :

Example 1 with ProjectFinder

use of jetbrains.buildServer.server.rest.data.ProjectFinder in project teamcity-rest by JetBrains.

the class BaseResolverTest method setUp.

@Override
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
    super.setUp();
    myDataFetchingEnvironment = new MockDataFetchingEnvironment();
    myFixture.addService(myProjectManager);
    myPermissionChecker = new PermissionChecker(myServer.getSecurityContext(), myProjectManager);
    myFixture.addService(myPermissionChecker);
    myProjectFinder = new ProjectFinder(myProjectManager, myPermissionChecker, myServer);
    myFixture.addService(myProjectFinder);
}
Also used : PermissionChecker(jetbrains.buildServer.server.rest.data.PermissionChecker) ProjectFinder(jetbrains.buildServer.server.rest.data.ProjectFinder) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

PermissionChecker (jetbrains.buildServer.server.rest.data.PermissionChecker)1 ProjectFinder (jetbrains.buildServer.server.rest.data.ProjectFinder)1 BeforeMethod (org.testng.annotations.BeforeMethod)1