]> source.dussan.org Git - aspectj.git/commitdiff
declareMixin
authoraclement <aclement>
Tue, 3 Mar 2009 19:13:26 +0000 (19:13 +0000)
committeraclement <aclement>
Tue, 3 Mar 2009 19:13:26 +0000 (19:13 +0000)
tests/src/org/aspectj/systemtest/ajc164/AllTestsAspectJ164.java
tests/src/org/aspectj/systemtest/ajc164/DeclareMixinTests.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc164/declareMixin.xml [new file with mode: 0644]

index b7c3197f91bba2e529f162bdb276943a73e656ab..51f0a5c468f65811a7cab956d141b97a78699f23 100644 (file)
@@ -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 (file)
index 0000000..af40353
--- /dev/null
@@ -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 (file)
index 0000000..67148f9
--- /dev/null
@@ -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