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/output/lang/java/JavaWriterTests.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/java/org/zwobble/hobgoblin/compiler/output/lang/java/JavaWriterTests.java b/src/test/java/org/zwobble/hobgoblin/compiler/output/lang/java/JavaWriterTests.java
index 280dc21..5595b62 100644
--- a/src/test/java/org/zwobble/hobgoblin/compiler/output/lang/java/JavaWriterTests.java
+++ b/src/test/java/org/zwobble/hobgoblin/compiler/output/lang/java/JavaWriterTests.java
@@ -26,6 +26,8 @@ public class JavaWriterTests {
assertThat(string, equalTo("""
public class Rectangle {
+ // Custom area start: body
+ // Custom area end: body
}"""
));
}
@@ -63,6 +65,9 @@ public class JavaWriterTests {
public void b() {
}
+
+ // Custom area start: body
+ // Custom area end: body
}"""
));
}
@@ -81,6 +86,8 @@ public class JavaWriterTests {
assertThat(string, equalTo("""
/// A 2D point.
public class Point {
+ // Custom area start: body
+ // Custom area end: body
}"""
));
}
@@ -98,6 +105,8 @@ public class JavaWriterTests {
assertThat(string, equalTo("""
public sealed interface Shape {
+ // Custom area start: body
+ // Custom area end: body
}"""
));
}
@@ -118,6 +127,8 @@ public class JavaWriterTests {
assertThat(string, equalTo("""
public sealed interface Shape permits abc.def.One, abc.def.Two {
+ // Custom area start: body
+ // Custom area end: body
}"""
));
}
@@ -136,6 +147,8 @@ public class JavaWriterTests {
assertThat(string, equalTo("""
/// A 2D shape.
public sealed interface Shape {
+ // Custom area start: body
+ // Custom area end: body
}"""
));
}
@@ -155,6 +168,8 @@ public class JavaWriterTests {
assertThat(string, equalTo("""
public record Point() {
+ // Custom area start: body
+ // Custom area end: body
}"""
));
}
@@ -175,6 +190,8 @@ public class JavaWriterTests {
assertThat(string, equalTo("""
/// A 2D point.
public record Point() {
+ // Custom area start: body
+ // Custom area end: body
}"""
));
}
@@ -214,6 +231,9 @@ public class JavaWriterTests {
public void b() {
}
+
+ // Custom area start: body
+ // Custom area end: body
}"""
));
}