aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/org/aspectj/systemtest/design
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/org/aspectj/systemtest/design')
-rw-r--r--tests/src/org/aspectj/systemtest/design/DesignTests.java80
-rw-r--r--tests/src/org/aspectj/systemtest/design/design.xml11
-rw-r--r--tests/src/org/aspectj/systemtest/design/designtest.xml94
3 files changed, 185 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/design/DesignTests.java b/tests/src/org/aspectj/systemtest/design/DesignTests.java
new file mode 100644
index 000000000..8a3248189
--- /dev/null
+++ b/tests/src/org/aspectj/systemtest/design/DesignTests.java
@@ -0,0 +1,80 @@
+/* *******************************************************************
+ * Copyright (c) 2004 IBM Corporation
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Common Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * ******************************************************************/
+package org.aspectj.systemtest.design;
+
+import java.io.File;
+import junit.framework.Test;
+import org.aspectj.testing.XMLBasedAjcTestCase;
+
+public class DesignTests extends org.aspectj.testing.XMLBasedAjcTestCase {
+
+ public static Test suite() {
+ return XMLBasedAjcTestCase.loadSuite(DesignTests.class);
+ }
+
+ protected File getSpecFile() {
+ return new File("../tests/src/org/aspectj/systemtest/design/design.xml");
+ }
+
+
+ public void test001(){
+ runTest("initial tests for new introduction style");
+ }
+
+ public void test002(){
+ runTest("overriding of introduced methods and accessibility");
+ }
+
+ public void test003(){
+ runTest("within and introductions behaves correctly");
+ }
+
+ public void test004(){
+ runTest("correct inheritance of multiple concrete methods");
+ }
+
+ public void test005(){
+ runTest("errors in inheritance of multiple concrete methods");
+ }
+
+ public void test006(){
+ runTest("declared exceptions are checked correctly on intros (errors)");
+ }
+
+ public void test007(){
+ runTest("declared exceptions are checked correctly on intros");
+ }
+
+ public void test008(){
+ runTest("Joinpoint is not created for foo(String) when before() advice is present.");
+ }
+
+ public void test009(){
+ runTest("more tests of eachobject with some difficult typing issues");
+ }
+
+ public void test010(){
+ runTest("eachobject: eachobject(receptions(...)) [eachobject]");
+ }
+
+ public void test011(){
+ runTest("Checking new joinpoints");
+ }
+
+ public void test012(){
+ runTest("eachobject: simple test [eachobject] (still)");
+ }
+
+ public void test013(){
+ runTest("scope issues with introduction (needs more work)");
+ }
+
+}
+
diff --git a/tests/src/org/aspectj/systemtest/design/design.xml b/tests/src/org/aspectj/systemtest/design/design.xml
new file mode 100644
index 000000000..51cc93173
--- /dev/null
+++ b/tests/src/org/aspectj/systemtest/design/design.xml
@@ -0,0 +1,11 @@
+<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd" [
+<!ENTITY designTests SYSTEM "../tests/src/org/aspectj/systemtest/design/designtest.xml">
+]>
+
+<!-- Language Design Tests -->
+
+<suite>
+
+&designTests;
+
+</suite> \ No newline at end of file
diff --git a/tests/src/org/aspectj/systemtest/design/designtest.xml b/tests/src/org/aspectj/systemtest/design/designtest.xml
new file mode 100644
index 000000000..112d9b6c1
--- /dev/null
+++ b/tests/src/org/aspectj/systemtest/design/designtest.xml
@@ -0,0 +1,94 @@
+ <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"/>
+ <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">
+ <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"/>
+ <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"/>
+ <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"/>
+ <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>
+