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());
}
Aggregations