]> source.dussan.org Git - aspectj.git/commitdiff
363979
authoraclement <aclement>
Thu, 17 Nov 2011 18:16:00 +0000 (18:16 +0000)
committeraclement <aclement>
Thu, 17 Nov 2011 18:16:00 +0000 (18:16 +0000)
tests/src/org/aspectj/systemtest/AllTests16.java
tests/src/org/aspectj/systemtest/AllTests17.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc170/AllTestsAspectJ170.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/ajc170/ajc170.xml [new file with mode: 0644]

index c13b783c464470519d53a830bbe13e1cbc7494b1..66e0d0bf39d99bda91324cbbac234e00a22fd7c4 100644 (file)
@@ -37,7 +37,6 @@ public class AllTests16 {
                suite.addTest(AllTestsAspectJ1610.suite());
                suite.addTest(AllTestsAspectJ1611.suite());
                suite.addTest(AllTestsAspectJ1612.suite());
-               suite.addTest(AllTests15.suite());
                // $JUnit-END$
                return suite;
        }
diff --git a/tests/src/org/aspectj/systemtest/AllTests17.java b/tests/src/org/aspectj/systemtest/AllTests17.java
new file mode 100644 (file)
index 0000000..f026ae5
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+ * Created on 19-01-2005
+ */
+package org.aspectj.systemtest;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.aspectj.systemtest.ajc170.AllTestsAspectJ170;
+
+public class AllTests17 {
+
+       public static Test suite() {
+               TestSuite suite = new TestSuite("AspectJ System Test Suite - JDK 1.7");
+               // $JUnit-BEGIN$
+               suite.addTest(AllTestsAspectJ170.suite());
+               suite.addTest(AllTests16.suite());
+               suite.addTest(AllTests15.suite());
+               // $JUnit-END$
+               return suite;
+       }
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java b/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java
new file mode 100644 (file)
index 0000000..71089cc
--- /dev/null
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * 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.ajc170;
+
+import java.io.File;
+
+import junit.framework.Test;
+
+import org.aspectj.testing.XMLBasedAjcTestCase;
+
+/**
+ * @author Andy Clement
+ */
+public class Ajc170Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
+
+       public void testMissingImpl_363979() {
+               runTest("missing impl");
+       }
+
+       // public void testMissingImpl_363979_2() {
+       // runTest("missing impl 2");
+       // }
+
+       // ---
+
+       public static Test suite() {
+               return XMLBasedAjcTestCase.loadSuite(Ajc170Tests.class);
+       }
+
+       @Override
+       protected File getSpecFile() {
+               return new File("../tests/src/org/aspectj/systemtest/ajc170/ajc170.xml");
+       }
+
+}
\ No newline at end of file
diff --git a/tests/src/org/aspectj/systemtest/ajc170/AllTestsAspectJ170.java b/tests/src/org/aspectj/systemtest/ajc170/AllTestsAspectJ170.java
new file mode 100644 (file)
index 0000000..fbb7cd2
--- /dev/null
@@ -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.ajc170;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class AllTestsAspectJ170 {
+
+       public static Test suite() {
+               TestSuite suite = new TestSuite("AspectJ 1.7.0 tests");
+               // $JUnit-BEGIN$
+               suite.addTest(Ajc170Tests.suite());
+               // $JUnit-END$
+               return suite;
+       }
+}
diff --git a/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml b/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml
new file mode 100644 (file)
index 0000000..0631a67
--- /dev/null
@@ -0,0 +1,24 @@
+<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
+
+<suite>
+
+   <ajc-test dir="bugs170/pr363979" title="missing impl">
+     <compile files="Example.java" options="-1.5"/>
+     <run class="Example">
+            <stdout>
+                <line text="yes"/>
+            </stdout>
+     </run>
+   </ajc-test>
+   
+   <ajc-test dir="bugs170/pr363979" title="missing impl 2">
+     <compile files="Example2.java" options="-1.5"/>
+     <run class="Example2">
+            <stdout>
+                <line text="yes"/>
+            </stdout>
+     </run>
+   </ajc-test>
+   
+  
+</suite>
\ No newline at end of file