Search in sources :

Example 6 with EnvironmentDriverResult

use of org.jboss.pnc.spi.environment.EnvironmentDriverResult in project pnc by project-ncl.

the class BuildResultRestTest method shouldGetLimitedToStringWithSomeValues.

@Test
public void shouldGetLimitedToStringWithSomeValues() {
    BuildResultRest buildResultRest = new BuildResultRest();
    buildResultRest.setCompletionStatus(CompletionStatus.SUCCESS);
    buildResultRest.setProcessException(null);
    buildResultRest.setProcessLog(LOG);
    buildResultRest.setBuildExecutionConfiguration(null);
    buildResultRest.setBuildDriverResult(null);
    buildResultRest.setRepositoryManagerResult(null);
    EnvironmentDriverResult environmentDriverResult = new EnvironmentDriverResult(CompletionStatus.SUCCESS, "SUCCESS", Optional.empty());
    buildResultRest.setEnvironmentDriverResult(environmentDriverResult);
    buildResultRest.setRepourResult(new RepourResult(CompletionStatus.SUCCESS, "Repour Success", "org.jboss", "1.1.0.Final-redhat-1"));
    buildResultRest.toString();
}
Also used : BuildResultRest(org.jboss.pnc.bpm.model.BuildResultRest) EnvironmentDriverResult(org.jboss.pnc.spi.environment.EnvironmentDriverResult) RepourResult(org.jboss.pnc.spi.repour.RepourResult) Test(org.junit.Test)

Aggregations

EnvironmentDriverResult (org.jboss.pnc.spi.environment.EnvironmentDriverResult)6 CompletionStatus (org.jboss.pnc.spi.coordinator.CompletionStatus)4 BuildResult (org.jboss.pnc.spi.BuildResult)3 ProcessException (org.jboss.pnc.spi.coordinator.ProcessException)3 RepourResult (org.jboss.pnc.spi.repour.RepourResult)3 BuildResultRest (org.jboss.pnc.bpm.model.BuildResultRest)2 BuildRecord (org.jboss.pnc.model.BuildRecord)2 BuildDriverResult (org.jboss.pnc.spi.builddriver.BuildDriverResult)2 DebugData (org.jboss.pnc.spi.builddriver.DebugData)2 BuildExecutionConfiguration (org.jboss.pnc.spi.executor.BuildExecutionConfiguration)2 ExecutorException (org.jboss.pnc.spi.executor.exceptions.ExecutorException)2 RepositoryManagerResult (org.jboss.pnc.spi.repositorymanager.RepositoryManagerResult)2 Test (org.junit.Test)2 BuildDriverResultRest (org.jboss.pnc.bpm.model.BuildDriverResultRest)1 BuildExecutionConfigurationRest (org.jboss.pnc.bpm.model.BuildExecutionConfigurationRest)1 RepositoryManagerResultRest (org.jboss.pnc.bpm.model.RepositoryManagerResultRest)1 BuildCoordinationException (org.jboss.pnc.coordinator.BuildCoordinationException)1 BuildStatus (org.jboss.pnc.enums.BuildStatus)1 Artifact (org.jboss.pnc.model.Artifact)1 SshCredentials (org.jboss.pnc.spi.SshCredentials)1