Search in sources :

Example 1 with AlignmentParameters

use of org.jboss.pnc.dto.response.AlignmentParameters in project pnc by project-ncl.

the class BuildConfigurationEndpointTest method testGetBuildTypeDefaultAlignmentParameters.

@Test
public void testGetBuildTypeDefaultAlignmentParameters() throws RemoteResourceException {
    BuildConfigurationClient client = new BuildConfigurationClient(RestClientConfiguration.asAnonymous());
    for (BuildType buildType : BuildType.values()) {
        AlignmentParameters params = client.getBuildTypeDefaultAlignmentParameters(buildType.name());
        // NPM and SBT default alignment params are empty
        if (!BuildType.NPM.equals(buildType) && !BuildType.SBT.equals(buildType)) {
            assertThat(params.getParameters()).isNotEmpty();
            assertThat(params.getBuildType()).isNotEmpty();
        }
    }
}
Also used : BuildType(org.jboss.pnc.enums.BuildType) BuildConfigurationClient(org.jboss.pnc.client.BuildConfigurationClient) AlignmentParameters(org.jboss.pnc.dto.response.AlignmentParameters) ContainerTest(org.jboss.pnc.test.category.ContainerTest) Test(org.junit.Test)

Aggregations

BuildConfigurationClient (org.jboss.pnc.client.BuildConfigurationClient)1 AlignmentParameters (org.jboss.pnc.dto.response.AlignmentParameters)1 BuildType (org.jboss.pnc.enums.BuildType)1 ContainerTest (org.jboss.pnc.test.category.ContainerTest)1 Test (org.junit.Test)1