aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/org/aspectj/systemtest/ajc166
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/org/aspectj/systemtest/ajc166')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java40
-rw-r--r--tests/src/org/aspectj/systemtest/ajc166/AllTestsAspectJ166.java25
-rw-r--r--tests/src/org/aspectj/systemtest/ajc166/ajc166.xml18
3 files changed, 83 insertions, 0 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java b/tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java
new file mode 100644
index 000000000..bd6283b77
--- /dev/null
+++ b/tests/src/org/aspectj/systemtest/ajc166/Ajc166Tests.java
@@ -0,0 +1,40 @@
+/*******************************************************************************
+ * 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.ajc166;
+
+import java.io.File;
+
+import junit.framework.Test;
+
+import org.aspectj.testing.XMLBasedAjcTestCase;
+
+public class Ajc166Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+
+ // fix is too disruptive for 1.6.5
+ // public void testGenericsBridge_pr279983() {
+ // runTest("generics bridge");
+ // }
+
+ public void testInterfacesSerializable_pr283229() {
+ runTest("interfaces and serializable");
+ }
+
+ // ---
+
+ public static Test suite() {
+ return XMLBasedAjcTestCase.loadSuite(Ajc166Tests.class);
+ }
+
+ protected File getSpecFile() {
+ return new File("../tests/src/org/aspectj/systemtest/ajc166/ajc166.xml");
+ }
+
+} \ No newline at end of file
diff --git a/tests/src/org/aspectj/systemtest/ajc166/AllTestsAspectJ166.java b/tests/src/org/aspectj/systemtest/ajc166/AllTestsAspectJ166.java
new file mode 100644
index 000000000..417b6ec3d
--- /dev/null
+++ b/tests/src/org/aspectj/systemtest/ajc166/AllTestsAspectJ166.java
@@ -0,0 +1,25 @@
+/*******************************************************************************
+ * 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.ajc166;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTestsAspectJ166 {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite("AspectJ 1.6.5 tests");
+ // $JUnit-BEGIN$
+ suite.addTest(Ajc166Tests.suite());
+ // $JUnit-END$
+ return suite;
+ }
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc166/ajc166.xml b/tests/src/org/aspectj/systemtest/ajc166/ajc166.xml
new file mode 100644
index 000000000..cf35c7f13
--- /dev/null
+++ b/tests/src/org/aspectj/systemtest/ajc166/ajc166.xml
@@ -0,0 +1,18 @@
+<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
+
+<suite>
+
+ <ajc-test dir="bugs166/pr283229" title="interfaces and serializable">
+ <compile files="Foo.java" options="-1.5 -XaddSerialVersionUID"/>
+ <run class="Foo">
+ <!--
+ <stdout>
+ <line text="if method: public static final boolean X.ajc$if$1ba()"/>
+ <line text="if method: public static final boolean X.ajc$if$177()"/>
+ <line text="if method: public static final boolean X.ajc$if$165()"/>
+ </stdout>
+ -->
+ </run>
+ </ajc-test>
+
+</suite> \ No newline at end of file