From dda1ef9438ba73f35f9c50359705aa6e48c342a6 Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Mon, 25 Nov 2019 11:05:45 -0800 Subject: [PATCH] first textblock test for Java13 --- tests/features195/textblock/Code.java | 9 +++++++ tests/features195/textblock/Code2.java | 15 +++++++++++ .../systemtest/ajc195/Ajc195Tests.java | 8 ++++++ .../org/aspectj/systemtest/ajc195/ajc195.xml | 27 +++++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 tests/features195/textblock/Code.java create mode 100644 tests/features195/textblock/Code2.java diff --git a/tests/features195/textblock/Code.java b/tests/features195/textblock/Code.java new file mode 100644 index 000000000..89df1e537 --- /dev/null +++ b/tests/features195/textblock/Code.java @@ -0,0 +1,9 @@ +public class Code { + public static void main(String[] argv) { + System.out.println(""" + this is a text + block + """); + } +} + diff --git a/tests/features195/textblock/Code2.java b/tests/features195/textblock/Code2.java new file mode 100644 index 000000000..f0b39e08b --- /dev/null +++ b/tests/features195/textblock/Code2.java @@ -0,0 +1,15 @@ +public class Code2 { + public static void main(String[] argv) { + } +} + +aspect X { + + before(): execution(* Code2.main(..)) { + System.out.println(""" + this is a text + block in advice + """); + } +} + diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc195/Ajc195Tests.java b/tests/src/test/java/org/aspectj/systemtest/ajc195/Ajc195Tests.java index 71219a5d2..ef674b404 100644 --- a/tests/src/test/java/org/aspectj/systemtest/ajc195/Ajc195Tests.java +++ b/tests/src/test/java/org/aspectj/systemtest/ajc195/Ajc195Tests.java @@ -24,6 +24,14 @@ public class Ajc195Tests extends XMLBasedAjcTestCase { runTest("around finally blocks and unlinking"); } + public void testTextBlock1() { + runTest("textblock 1"); + } + + public void testTextBlock2() { + runTest("textblock 2"); + } + // --- public static Test suite() { diff --git a/tests/src/test/resources/org/aspectj/systemtest/ajc195/ajc195.xml b/tests/src/test/resources/org/aspectj/systemtest/ajc195/ajc195.xml index c21529061..1084faf91 100644 --- a/tests/src/test/resources/org/aspectj/systemtest/ajc195/ajc195.xml +++ b/tests/src/test/resources/org/aspectj/systemtest/ajc195/ajc195.xml @@ -72,5 +72,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.39.5