diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-07-31 12:34:40 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-07-31 12:41:53 +0100 |
| commit | 5148cdd9343e28e945c3e4c206d5d29c5790c001 (patch) | |
| tree | 191b5f9b494dfa046f61286185c09d6d4ef5ed81 /examples/06-list/output/java | |
| parent | 4bf0bacb0f369962144f51ad4491ac58875532a0 (diff) | |
Support circular imports
Diffstat (limited to 'examples/06-list/output/java')
| -rw-r--r-- | examples/06-list/output/java/.gitignore | 2 | ||||
| l--------- | examples/06-list/output/java/pom.xml | 1 | ||||
| -rw-r--r-- | examples/06-list/output/java/src/test/java/org/zwobble/example/PointTests.java | 32 |
3 files changed, 0 insertions, 35 deletions
diff --git a/examples/06-list/output/java/.gitignore b/examples/06-list/output/java/.gitignore deleted file mode 100644 index ff511d4..0000000 --- a/examples/06-list/output/java/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/src/gen/ -/target/ diff --git a/examples/06-list/output/java/pom.xml b/examples/06-list/output/java/pom.xml deleted file mode 120000 index 445fa65..0000000 --- a/examples/06-list/output/java/pom.xml +++ /dev/null @@ -1 +0,0 @@ -../../../templates/java-junit/pom.xml
\ No newline at end of file diff --git a/examples/06-list/output/java/src/test/java/org/zwobble/example/PointTests.java b/examples/06-list/output/java/src/test/java/org/zwobble/example/PointTests.java deleted file mode 100644 index e1528b5..0000000 --- a/examples/06-list/output/java/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) - ))); - } -} |
