summaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java
index ab124a1..9a5a395 100644
--- a/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java
+++ b/src/test/java/org/zwobble/hobgoblin/compiler/ExampleTests.java
@@ -26,13 +26,12 @@ public class ExampleTests {
private void runTest(ExampleSet exampleSet) throws IOException, InterruptedException, NoSuchAlgorithmException {
HobgoblinCompiler.compile(exampleSet.path());
- verifyJavaJunitOutput(exampleSet);
+ verifyJavaOutput(exampleSet);
verifyRustOutput(exampleSet);
}
- 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 verifyJavaOutput(ExampleSet exampleSet) throws NoSuchAlgorithmException, IOException, InterruptedException {
+ verifyOutput(exampleSet, "java", List.of("mvn", "test"));
}
private void verifyRustOutput(ExampleSet exampleSet) throws NoSuchAlgorithmException, IOException, InterruptedException {