From 727b09bf8fe6c0b9085d2b61d1f8ed5c81b2fdce Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 5 Jul 2026 10:56:48 +0100 Subject: Use JUnit in Java transient-0 example --- src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/test/java') diff --git a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java index 80c2fbd..46b35e4 100644 --- a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java +++ b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java @@ -27,6 +27,7 @@ public class ExampleTests { HobgoblinCompiler.compile(exampleSet.path()); verifyJavaOutput(exampleSet); + verifyJavaJunitOutput(exampleSet); verifyRustOutput(exampleSet); } @@ -34,6 +35,11 @@ public class ExampleTests { verifyOutput(exampleSet, "java", List.of("mvn", "compile", "exec:java")); } + private void verifyJavaJunitOutput(ExampleSet exampleSet) throws NoSuchAlgorithmException, IOException, InterruptedException { + // TODO: allow example to declare its structure + verifyOutput(exampleSet, "java-junit", List.of("mvn", "test")); + } + private void verifyRustOutput(ExampleSet exampleSet) throws NoSuchAlgorithmException, IOException, InterruptedException { verifyOutput(exampleSet, "rust", List.of("cargo", "run")); } -- cgit v1.2.3