From 6194d284f5559acc5f23a402f577bac655878f92 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 14 Jul 2026 18:41:17 +0100 Subject: Rename java-junit to java --- examples/05-list/output/java-junit/.gitignore | 2 -- examples/05-list/output/java-junit/pom.xml | 1 - .../test/java/org/zwobble/example/PointTests.java | 32 ---------------------- examples/05-list/output/java/.gitignore | 2 ++ examples/05-list/output/java/pom.xml | 1 + .../test/java/org/zwobble/example/PointTests.java | 32 ++++++++++++++++++++++ 6 files changed, 35 insertions(+), 35 deletions(-) delete mode 100644 examples/05-list/output/java-junit/.gitignore delete mode 120000 examples/05-list/output/java-junit/pom.xml delete mode 100644 examples/05-list/output/java-junit/src/test/java/org/zwobble/example/PointTests.java create mode 100644 examples/05-list/output/java/.gitignore create mode 120000 examples/05-list/output/java/pom.xml create mode 100644 examples/05-list/output/java/src/test/java/org/zwobble/example/PointTests.java (limited to 'examples/05-list/output') diff --git a/examples/05-list/output/java-junit/.gitignore b/examples/05-list/output/java-junit/.gitignore deleted file mode 100644 index ff511d4..0000000 --- a/examples/05-list/output/java-junit/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/src/gen/ -/target/ diff --git a/examples/05-list/output/java-junit/pom.xml b/examples/05-list/output/java-junit/pom.xml deleted file mode 120000 index 445fa65..0000000 --- a/examples/05-list/output/java-junit/pom.xml +++ /dev/null @@ -1 +0,0 @@ -../../../templates/java-junit/pom.xml \ No newline at end of file diff --git a/examples/05-list/output/java-junit/src/test/java/org/zwobble/example/PointTests.java b/examples/05-list/output/java-junit/src/test/java/org/zwobble/example/PointTests.java deleted file mode 100644 index e1528b5..0000000 --- a/examples/05-list/output/java-junit/src/test/java/org/zwobble/example/PointTests.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.zwobble.example; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import org.junit.jupiter.api.Test; -import java.util.List; -import org.zwobble.example.types.point.Path; -import org.zwobble.example.types.point.Point; - -public class PointTests { - @Test - public void canCreatePathWithConstructor() { - Path path = new Path(List.of( - new Point(10, 25), - new Point(25, 10) - )); - - assertEquals(path.points().size(), 2); - } - - @Test - public void canCreatePathWithBuilder() { - Path path = Path.arbitrary() - .addPoint(new Point(10, 25)) - .addPoint(new Point(25, 10)) - .build(); - - assertEquals(path, new Path(List.of( - new Point(10, 25), - new Point(25, 10) - ))); - } -} diff --git a/examples/05-list/output/java/.gitignore b/examples/05-list/output/java/.gitignore new file mode 100644 index 0000000..ff511d4 --- /dev/null +++ b/examples/05-list/output/java/.gitignore @@ -0,0 +1,2 @@ +/src/gen/ +/target/ diff --git a/examples/05-list/output/java/pom.xml b/examples/05-list/output/java/pom.xml new file mode 120000 index 0000000..445fa65 --- /dev/null +++ b/examples/05-list/output/java/pom.xml @@ -0,0 +1 @@ +../../../templates/java-junit/pom.xml \ No newline at end of file diff --git a/examples/05-list/output/java/src/test/java/org/zwobble/example/PointTests.java b/examples/05-list/output/java/src/test/java/org/zwobble/example/PointTests.java new file mode 100644 index 0000000..e1528b5 --- /dev/null +++ b/examples/05-list/output/java/src/test/java/org/zwobble/example/PointTests.java @@ -0,0 +1,32 @@ +package org.zwobble.example; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import org.junit.jupiter.api.Test; +import java.util.List; +import org.zwobble.example.types.point.Path; +import org.zwobble.example.types.point.Point; + +public class PointTests { + @Test + public void canCreatePathWithConstructor() { + Path path = new Path(List.of( + new Point(10, 25), + new Point(25, 10) + )); + + assertEquals(path.points().size(), 2); + } + + @Test + public void canCreatePathWithBuilder() { + Path path = Path.arbitrary() + .addPoint(new Point(10, 25)) + .addPoint(new Point(25, 10)) + .build(); + + assertEquals(path, new Path(List.of( + new Point(10, 25), + new Point(25, 10) + ))); + } +} -- cgit v1.2.3