From 0f211e17cac9b031ab8d9115f9030b3e65d3927a Mon Sep 17 00:00:00 2001 From: acolyer Date: Wed, 4 Aug 2004 12:04:41 +0000 Subject: Spring cleaning in the test suite. Docs for AjcTestCase and XMLBasedAjcTestCase added in docs dir. --- .../org/aspectj/systemtest/design/DesignTests.java | 80 ++++++++++++++++++ tests/src/org/aspectj/systemtest/design/design.xml | 11 +++ .../org/aspectj/systemtest/design/designtest.xml | 94 ++++++++++++++++++++++ 3 files changed, 185 insertions(+) create mode 100644 tests/src/org/aspectj/systemtest/design/DesignTests.java create mode 100644 tests/src/org/aspectj/systemtest/design/design.xml create mode 100644 tests/src/org/aspectj/systemtest/design/designtest.xml (limited to 'tests/src/org/aspectj/systemtest/design') 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 @@ + +]> + + + + + +&designTests; + + \ 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3