use of org.apache.nifi.bundle.BundleDetails.Builder in project nifi-minifi by apache.
the class FlowEnricherTest method generateBundle.
private static Bundle generateBundle(String group, String id, String version, BundleCoordinate dependencyCoordinate) {
final File workingDirectory = new File("src/test/resources");
final BundleCoordinate bundleCoordinate = new BundleCoordinate(group, id, version);
final String buildTag = "HEAD";
final String buildRevision = "1";
final String buildBranch = "DEV";
final String buildTimestamp = "2017-01-01 00:00:00";
final String buildJdk = "JDK8";
final String builtBy = "somebody";
Builder bundleBuilder = new Builder().workingDir(workingDirectory).coordinate(bundleCoordinate).buildTag(buildTag).buildRevision(buildRevision).buildBranch(buildBranch).buildTimestamp(buildTimestamp).buildJdk(buildJdk).builtBy(builtBy);
if (dependencyCoordinate != null) {
bundleBuilder.dependencyCoordinate(dependencyCoordinate);
}
return new Bundle(bundleBuilder.build(), mockClassLoader);
}
Aggregations