use of org.jboss.pnc.dto.response.Parameter in project pnc by project-ncl.
the class BuildConfigurationEndpointTest method testGetSupportedParameters.
@Test
public void testGetSupportedParameters() throws ClientException {
BuildConfigurationClient client = new BuildConfigurationClient(RestClientConfiguration.asAnonymous());
Set<Parameter> all = client.getSupportedParameters();
assertThat(all).haveExactly(1, new Condition<>(p -> p.getName().equals(BuildConfigurationParameterKeys.ALIGNMENT_PARAMETERS.name()) && p.getDescription().startsWith("Additional parameters, which will be "), "has PME parameter")).size().isGreaterThanOrEqualTo(4);
}
Aggregations