diff options
author | aclement <aclement> | 2009-03-03 19:13:26 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-03-03 19:13:26 +0000 |
commit | 7239597b06d9afef587f1c01e2d44b701bc429cb (patch) | |
tree | bdece1a636a682d91065ec9523cbef50c7786775 /tests | |
parent | 7c7a3c616e3d41049750737c817587e6c8eb6a71 (diff) | |
download | aspectj-7239597b06d9afef587f1c01e2d44b701bc429cb.tar.gz aspectj-7239597b06d9afef587f1c01e2d44b701bc429cb.zip |
declareMixin
Diffstat (limited to 'tests')
3 files changed, 59 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc164/AllTestsAspectJ164.java b/tests/src/org/aspectj/systemtest/ajc164/AllTestsAspectJ164.java index b7c3197f9..51f0a5c46 100644 --- a/tests/src/org/aspectj/systemtest/ajc164/AllTestsAspectJ164.java +++ b/tests/src/org/aspectj/systemtest/ajc164/AllTestsAspectJ164.java @@ -19,6 +19,7 @@ public class AllTestsAspectJ164 { TestSuite suite = new TestSuite("AspectJ 1.6.4 tests"); // $JUnit-BEGIN$ suite.addTest(Ajc164Tests.suite()); + suite.addTest(DeclareMixinTests.suite()); // $JUnit-END$ return suite; } diff --git a/tests/src/org/aspectj/systemtest/ajc164/DeclareMixinTests.java b/tests/src/org/aspectj/systemtest/ajc164/DeclareMixinTests.java new file mode 100644 index 000000000..af40353c3 --- /dev/null +++ b/tests/src/org/aspectj/systemtest/ajc164/DeclareMixinTests.java @@ -0,0 +1,48 @@ +/******************************************************************************* + * Copyright (c) 2008 Contributors + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Andy Clement - initial API and implementation + *******************************************************************************/ +package org.aspectj.systemtest.ajc164; + +import java.io.File; + +import junit.framework.Test; + +import org.aspectj.testing.XMLBasedAjcTestCase; + +/** + * <h4>Design and test coverage</h4><br> + * In many ways the design is similar to DeclareParents now - so we have to plug in at the same points, but the code generation for + * generating the delegate object and the choice of which interfaces (and methods within those) to mixin is different. + * + * <h4>Design considerations:</h4><br> + * <ul> + * <li>model relationships + * <li>incremental compilation + * </ul> + * + * @author Andy Clement + */ +public class DeclareMixinTests extends org.aspectj.testing.XMLBasedAjcTestCase { + + public void testSimpleCase() { + // runTest("simple case"); + } + + // -- + + public static Test suite() { + return XMLBasedAjcTestCase.loadSuite(DeclareMixinTests.class); + } + + protected File getSpecFile() { + return new File("../tests/src/org/aspectj/systemtest/ajc164/declareMixin.xml"); + } + +}
\ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc164/declareMixin.xml b/tests/src/org/aspectj/systemtest/ajc164/declareMixin.xml new file mode 100644 index 000000000..67148f908 --- /dev/null +++ b/tests/src/org/aspectj/systemtest/ajc164/declareMixin.xml @@ -0,0 +1,10 @@ +<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]> + +<suite> + + <ajc-test dir="features164/declareMixin" title="simple scenario"> + <compile files="CaseA.java" options="-1.5"/> + <run class="CaseA"/> + </ajc-test> + +</suite>
\ No newline at end of file |