diff options
Diffstat (limited to 'src/test/java')
| -rw-r--r-- | src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java index 8e68c09..fb5cc55 100644 --- a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java +++ b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java @@ -2,6 +2,7 @@ package org.zwobble.hobgoblin.compiler; import org.junit.jupiter.api.DynamicTest; import org.junit.jupiter.api.TestFactory; +import org.zwobble.hobgoblin.compiler.output.generators.javatypes.JavaTypesGenerator; import org.zwobble.hobgoblin.compiler.testing.TestProcessRunner; import java.io.IOException; @@ -19,9 +20,15 @@ public class ExampleTests { } private void runTest(ExampleSet exampleSet) throws IOException, InterruptedException { - HobgoblinCompiler.compile(exampleSet.path(), List.of()); - var javaProjectPath = exampleSet.path().resolve("output/java"); + + var javaTypesGenerator = new JavaTypesGenerator( + javaProjectPath.resolve("src/gen/java"), + "org.zwobble.example.types" + ); + var generators = List.of(javaTypesGenerator); + HobgoblinCompiler.compile(exampleSet.path(), generators); + TestProcessRunner.command(List.of("mvn", "compile")) .cwd(javaProjectPath) .runCaptureOutput() |
