aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java/org/aspectj/systemtest/design/designtest.xml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/test/java/org/aspectj/systemtest/design/designtest.xml')
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/design/designtest.xml106
1 files changed, 106 insertions, 0 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/design/designtest.xml b/tests/src/test/java/org/aspectj/systemtest/design/designtest.xml
new file mode 100644
index 000000000..21be1943c
--- /dev/null
+++ b/tests/src/test/java/org/aspectj/systemtest/design/designtest.xml
@@ -0,0 +1,106 @@
+ <ajc-test dir="design/intro"
+ title="initial tests for new introduction style" keywords="from-design">
+ <compile files="Simple.java"/>
+ <run class="Simple"/>
+ </ajc-test>
+
+ <ajc-test dir="design/intro"
+ title="overriding of introduced methods and accessibility"
+ keywords="from-design">
+ <compile files="Overriding.java"/>
+ <run class="Overriding"/>
+ </ajc-test>
+
+ <ajc-test dir="design/intro"
+ title="within and introductions behaves correctly" keywords="from-design">
+ <compile files="Within.java" options="-1.4"/>
+ <run class="Within"/>
+ </ajc-test>
+
+ <ajc-test dir="design/intro" pr="570"
+ title="correct inheritance of multiple concrete methods"
+ keywords="from-design">
+ <compile files="MultiInheritCP.java"/>
+ <run class="MultiInheritCP"/>
+ </ajc-test>
+
+ <ajc-test dir="design/intro" pr="570"
+ title="errors in inheritance of multiple concrete methods"
+ keywords="from-design">
+ <compile files="MultiInheritCF.java">
+<!-- the error is: error at java\lang\Object.java::0 can't override int I2.toString() with java.lang.String java.lang.Object.toString() return types don't match-->
+ <message kind="error" line="0"/>
+ <message kind="error" line="17"/>
+ <message kind="error" line="18"/>
+ <message kind="error" line="21"/>
+ <message kind="error" line="41"/>
+ <message kind="error" line="42"/>
+ <message kind="error" line="43"/>
+ <message kind="error" line="45"/>
+ <message kind="error" line="46"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="design/intro"
+ title="declared exceptions are checked correctly on intros (errors)">
+ <compile files="ExceptionsCF.java">
+ <message kind="error" line="8"/>
+ <message kind="error" line="23"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="design/intro"
+ title="declared exceptions are checked correctly on intros">
+ <compile files="ExceptionsCP.java">
+ </compile>
+ <run class="ExceptionsCP"/>
+ </ajc-test>
+
+ <ajc-test dir="design/reflect"
+ title="Joinpoint is not created for foo(String) when before() advice is present."
+ keywords="from-design">
+ <compile files="SimpleAround1.java"/>
+ <run class="SimpleAround1"/>
+ </ajc-test>
+
+ <ajc-test dir="design/eachobject"
+ title="more tests of eachobject with some difficult typing issues"
+ keywords="from-design">
+ <compile files="Tricky3.java" options="-1.4"/>
+ <run class="Tricky3"/>
+ </ajc-test>
+
+ <ajc-test dir="design/eachobject"
+ title="eachobject: eachobject(receptions(...)) [eachobject]"
+ keywords="from-design">
+ <compile files="Tricky1.java"/>
+ <run class="Tricky1"/>
+ </ajc-test>
+
+ <ajc-test dir="design/reflect" title="Checking new joinpoints"
+ keywords="from-design">
+ <compile files="Coverage.java" options="-Xlint:ignore"/>
+ <run class="Coverage"/>
+ </ajc-test>
+
+ <ajc-test dir="design/eachobject"
+ title="eachobject: simple test [eachobject] (still)"
+ keywords="from-design">
+ <compile files="Simple.java"/>
+ <run class="Simple"/>
+ </ajc-test>
+
+ <ajc-test dir="design/intro"
+ title="scope issues with introduction (needs more work)"
+ keywords="from-design">
+ <compile files="p1/ScopeIssues.java,p1/C1.java"/>
+ <run class="p1.ScopeIssues"/>
+ </ajc-test>
+
+<!-- uncomment this test if we decide to implement 42743
+ <ajc-test dir="design/soft" pr="42743"
+ title="declare soft limitation">
+ <compile files="DeclareSoft.aj"/>
+ <run class="DeclareSoft"/>
+ </ajc-test>
+-->