Search in sources :

Example 1 with BuildTypesConnection

use of jetbrains.buildServer.server.graphql.model.connections.BuildTypesConnection in project teamcity-rest by JetBrains.

the class ProjectResolverTest method testBuildTypes.

@Test
public void testBuildTypes() throws Exception {
    BuildTypesConnection buildTypes = myResolver.buildTypes(new Project(mySubProject), null, null, myDataFetchingEnvironment);
    assertEquals(2, buildTypes.getCount());
    assertExtensibleEdges(buildTypes.getEdges().getData(), new BuildType(myBuildType1), new BuildType(myBuildType2));
}
Also used : SProject(jetbrains.buildServer.serverSide.SProject) Project(jetbrains.buildServer.server.graphql.model.Project) BuildTypesConnection(jetbrains.buildServer.server.graphql.model.connections.BuildTypesConnection) BuildType(jetbrains.buildServer.server.graphql.model.buildType.BuildType) Test(org.testng.annotations.Test)

Aggregations

Project (jetbrains.buildServer.server.graphql.model.Project)1 BuildType (jetbrains.buildServer.server.graphql.model.buildType.BuildType)1 BuildTypesConnection (jetbrains.buildServer.server.graphql.model.connections.BuildTypesConnection)1 SProject (jetbrains.buildServer.serverSide.SProject)1 Test (org.testng.annotations.Test)1