summaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-06-30 20:16:26 +0100
committerMichael Williamson <mike@zwobble.org>2026-06-30 20:16:26 +0100
commit3f967500fcca9a43a89fa9a1b771d16e8da5ea22 (patch)
treefa0934059fb4724a290bd7d2d0dcf917fa1ec123 /src/test/java
parent81168752fe9b588f7a8215f86a32f3154c3f593a (diff)
Extract verifyJavaOutput
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java8
1 files changed, 6 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 999ae83..64f7b2c 100644
--- a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java
+++ b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java
@@ -24,10 +24,14 @@ public class ExampleTests {
}
private void runTest(ExampleSet exampleSet) throws IOException, InterruptedException, NoSuchAlgorithmException {
- var javaProjectPath = exampleSet.path().resolve("output/java");
-
HobgoblinCompiler.compile(exampleSet.path());
+ verifyJavaOutput(exampleSet);
+ }
+
+ private void verifyJavaOutput(ExampleSet exampleSet) throws NoSuchAlgorithmException, IOException, InterruptedException {
+ var javaProjectPath = exampleSet.path().resolve("output/java");
+
var currentHash = hashJavaProject(javaProjectPath);
var lastTestRunPath = javaProjectPath.resolve("last-test-run.properties");