summaryrefslogtreecommitdiff
path: root/src/test/java/org
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-07-05 10:56:48 +0100
committerMichael Williamson <mike@zwobble.org>2026-07-05 10:58:53 +0100
commit727b09bf8fe6c0b9085d2b61d1f8ed5c81b2fdce (patch)
treefea6b1f5ed8d79b71227714d4f93c1b22511c818 /src/test/java/org
parentddc251ace30b4ca694a006e3cca2375bb2255aed (diff)
Use JUnit in Java transient-0 example
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java6
1 files changed, 6 insertions, 0 deletions
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"));
}