use of io.vertx.starter.model.VertxProject in project vertx-starter by vert-x3.
the class GeneratorTest method testProjectsJdk8.
static Stream<VertxProject> testProjectsJdk8() throws IOException {
List<String> versions = Util.loadStarterData().getJsonArray("versions").stream().map(JsonObject.class::cast).map(obj -> obj.getString("number")).filter(version -> !version.endsWith("-SNAPSHOT")).collect(toList());
List<Set<String>> testDeps = Arrays.asList(Collections.singleton("vertx-unit"), Collections.singleton("vertx-junit5"));
Stream.Builder<VertxProject> builder = Stream.builder();
for (BuildTool buildTool : BuildTool.values()) {
for (Language language : Language.values()) {
for (String version : versions) {
for (Set<String> vertxDependencies : testDeps) {
VertxProject vertxProject = defaultProject().setBuildTool(buildTool).setLanguage(language).setVertxVersion(version).setVertxDependencies(new HashSet<>(vertxDependencies)).setPackageName("com.mycompany.project.special");
builder.add(vertxProject);
}
}
}
}
return builder.build();
}
Aggregations