mirror of
https://github.com/jlengrand/quarkus.git
synced 2026-03-10 08:41:22 +00:00
Set className and path to trigger sample code generation
This commit is contained in:
@@ -5,6 +5,7 @@ import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import io.quarkus.cli.commands.CreateProject;
|
||||
import io.quarkus.cli.commands.writer.FileProjectWriter;
|
||||
@@ -73,13 +74,16 @@ public class QuarkusPluginFunctionalTest {
|
||||
}
|
||||
|
||||
private void createProject(SourceType sourceType) throws IOException {
|
||||
Map<String,Object> context = new HashMap<>();
|
||||
context.put("path", "/greeting");
|
||||
assertThat(new CreateProject(new FileProjectWriter(projectRoot))
|
||||
.groupId("com.acme.foo")
|
||||
.artifactId("foo")
|
||||
.version("1.0.0-SNAPSHOT")
|
||||
.buildTool(BuildTool.GRADLE)
|
||||
.className("org.acme.GreetingResource")
|
||||
.sourceType(sourceType)
|
||||
.doCreateProject(new HashMap<>()))
|
||||
.doCreateProject(context))
|
||||
.withFailMessage("Project was not created")
|
||||
.isTrue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user