From 66469244e4aa352f0db6d91854541a85d68e7032 Mon Sep 17 00:00:00 2001 From: hsestupin Date: Thu, 14 Aug 2014 12:54:28 +0400 Subject: add APT test generating Java files Signed-off-by: hsestupin --- tests/src/org/aspectj/systemtest/apt/AptTests.java | 50 ++++++++++++---------- tests/src/org/aspectj/systemtest/apt/apt-spec.xml | 32 +++++++++----- 2 files changed, 49 insertions(+), 33 deletions(-) (limited to 'tests/src') diff --git a/tests/src/org/aspectj/systemtest/apt/AptTests.java b/tests/src/org/aspectj/systemtest/apt/AptTests.java index 7781ff013..af8df5e8c 100644 --- a/tests/src/org/aspectj/systemtest/apt/AptTests.java +++ b/tests/src/org/aspectj/systemtest/apt/AptTests.java @@ -23,28 +23,32 @@ import java.io.File; */ public class AptTests extends XMLBasedAjcTestCase { - public void testAptWithSpecifiedProcessor() { - runTest("annotation processing with specified processor"); - } - - /** - * SPI - http://docs.oracle.com/javase/tutorial/sound/SPI-intro.html - */ - public void testAptUsingSPI() { - runTest("annotation processing in action using SPI"); - } - - public void testDisabledApt() { - runTest("disabled annotation processing"); - } - - public static Test suite() { - return XMLBasedAjcTestCase.loadSuite(AptTests.class); - } - - @Override - protected File getSpecFile() { - return getClassResource("apt-spec.xml"); - } + public void testAptWithSpecifiedProcessor() { + runTest("annotation processing with specified processor"); + } + + /** + * SPI - http://docs.oracle.com/javase/tutorial/sound/SPI-intro.html + */ + public void testAptUsingSPI() { + runTest("annotation processing in action using SPI"); + } + + public void testDisabledApt() { + runTest("disabled annotation processing"); + } + + public void testAptWithJavaFilesAsAspects() { + runTest("annotation processing generating java files with aspects"); + } + + public static Test suite() { + return XMLBasedAjcTestCase.loadSuite(AptTests.class); + } + + @Override + protected File getSpecFile() { + return getClassResource("apt-spec.xml"); + } } diff --git a/tests/src/org/aspectj/systemtest/apt/apt-spec.xml b/tests/src/org/aspectj/systemtest/apt/apt-spec.xml index c1d34bd23..d2aa1cd79 100644 --- a/tests/src/org/aspectj/systemtest/apt/apt-spec.xml +++ b/tests/src/org/aspectj/systemtest/apt/apt-spec.xml @@ -2,8 +2,8 @@ - - + - @@ -30,12 +30,12 @@ - + - - + + - @@ -64,8 +64,8 @@ - - + - + + + + + + + + + + -- cgit v1.2.3