use of jetbrains.buildServer.server.graphql.resolver.agentPool.AbstractAgentPoolResolver in project teamcity-rest by JetBrains.
the class AbstractAgentPoolResolverTest method setUp.
@Override
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception {
super.setUp();
myActionChecker = new AgentPoolAccessCheckerForTests();
SecuredProjectManager projectManager = new SecuredProjectManager(myFixture.getSecurityContext());
projectManager.setDelegate(myProjectManager);
Mock cloudManagerMock = mock(CloudManager.class);
myResolver = new AbstractAgentPoolResolver(projectManager, myActionChecker, // not actually used in tests
(CloudManager) cloudManagerMock.proxy(), myFixture.getAgentTypeFinder(), myServer.getSecurityContext());
}
Aggregations