diff options
author | aclement <aclement> | 2011-11-17 18:16:00 +0000 |
---|---|---|
committer | aclement <aclement> | 2011-11-17 18:16:00 +0000 |
commit | fc95d9e3cb3524abc45cf0fc1a3cd5952ee033c6 (patch) | |
tree | 62401b64d35af12185c4c4bde090918ad7ca4bed /tests/src | |
parent | fc7ad6de88c19c4e39d72a7c92f65aafb2e86484 (diff) | |
download | aspectj-fc95d9e3cb3524abc45cf0fc1a3cd5952ee033c6.tar.gz aspectj-fc95d9e3cb3524abc45cf0fc1a3cd5952ee033c6.zip |
363979
Diffstat (limited to 'tests/src')
5 files changed, 114 insertions, 1 deletions
diff --git a/tests/src/org/aspectj/systemtest/AllTests16.java b/tests/src/org/aspectj/systemtest/AllTests16.java index c13b783c4..66e0d0bf3 100644 --- a/tests/src/org/aspectj/systemtest/AllTests16.java +++ b/tests/src/org/aspectj/systemtest/AllTests16.java @@ -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 index 000000000..f026ae59a --- /dev/null +++ b/tests/src/org/aspectj/systemtest/AllTests17.java @@ -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 index 000000000..71089ccfc --- /dev/null +++ b/tests/src/org/aspectj/systemtest/ajc170/Ajc170Tests.java @@ -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 index 000000000..fbb7cd2c9 --- /dev/null +++ b/tests/src/org/aspectj/systemtest/ajc170/AllTestsAspectJ170.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.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 index 000000000..0631a677e --- /dev/null +++ b/tests/src/org/aspectj/systemtest/ajc170/ajc170.xml @@ -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 |