From 3f967500fcca9a43a89fa9a1b771d16e8da5ea22 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 30 Jun 2026 20:16:26 +0100 Subject: Extract verifyJavaOutput --- src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (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 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"); -- cgit v1.2.3