use of org.jboss.pnc.bpm.model.ComponentBuildParameters in project pnc by project-ncl.
the class ComponentBuildParametersSerialization method shouldSerializeParameters.
@Test
public void shouldSerializeParameters() throws JsonProcessingException {
BuildExecutionConfiguration buildExecutionConfiguration = BuildExecutionConfigurationMock.mock();
BuildExecutionConfigurationRest buildExecutionConfigurationRest = new BuildExecutionConfigurationRest(buildExecutionConfiguration);
ComponentBuildParameters processParameters = new ComponentBuildParameters("http://pncBaseUrl", "http://aproxBaseUrl", "http://repourBaseUrl", "http://daBaseUrl", false, true, buildExecutionConfigurationRest);
String string = MAPPER.writeValueAsString(processParameters);
log.debug("Serialized: {}", string);
Assert.assertTrue(string.contains(BuildExecutionConfigurationMock.DEFAULT_SYSTEM_IMAGE_ID));
}
Aggregations