Search in sources :

Example 1 with IndyRepositoryManagerResult

use of org.jboss.pnc.indyrepositorymanager.IndyRepositoryManagerResult in project pnc by project-ncl.

the class StatusUpdatesTest method createBuildResult.

private BuildResult createBuildResult() {
    IndyRepositoryManagerResult repoManagerResult = new IndyRepositoryManagerResult(Collections.emptyList(), Collections.emptyList(), RandomStringUtils.randomNumeric(4));
    BuildDriverResult driverResult = new BuildDriverResult() {

        @Override
        public String getBuildLog() {
            return "";
        }

        @Override
        public BuildStatus getBuildStatus() {
            return BuildStatus.SUCCESS;
        }

        @Override
        public Optional<String> getOutputChecksum() {
            return Optional.of("3678bbe366b11f7216bd03ad33f583d9");
        }
    };
    return new BuildResult(CompletionStatus.SUCCESS, Optional.empty(), "", Optional.empty(), Optional.of(driverResult), Optional.of(repoManagerResult), Optional.empty(), Optional.empty());
}
Also used : BuildResult(org.jboss.pnc.spi.BuildResult) BuildDriverResult(org.jboss.pnc.spi.builddriver.BuildDriverResult) IndyRepositoryManagerResult(org.jboss.pnc.indyrepositorymanager.IndyRepositoryManagerResult)

Aggregations

IndyRepositoryManagerResult (org.jboss.pnc.indyrepositorymanager.IndyRepositoryManagerResult)1 BuildResult (org.jboss.pnc.spi.BuildResult)1 BuildDriverResult (org.jboss.pnc.spi.builddriver.BuildDriverResult)1