Search in sources :

Example 1 with ComponentBuildParameters

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));
}
Also used : ComponentBuildParameters(org.jboss.pnc.bpm.model.ComponentBuildParameters) BuildExecutionConfiguration(org.jboss.pnc.spi.executor.BuildExecutionConfiguration) BuildExecutionConfigurationRest(org.jboss.pnc.bpm.model.BuildExecutionConfigurationRest) Test(org.junit.Test)

Aggregations

BuildExecutionConfigurationRest (org.jboss.pnc.bpm.model.BuildExecutionConfigurationRest)1 ComponentBuildParameters (org.jboss.pnc.bpm.model.ComponentBuildParameters)1 BuildExecutionConfiguration (org.jboss.pnc.spi.executor.BuildExecutionConfiguration)1 Test (org.junit.Test)1