aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormwebster <mwebster>2006-08-09 12:54:13 +0000
committermwebster <mwebster>2006-08-09 12:54:13 +0000
commit8df8db1be53dff9405da3a2edb542af2c28ea75a (patch)
treee07faea07ff70baa463cf0ed2e86ec9baee462be
parent594b441f49fd3be06e1bc1caa060194f42477f38 (diff)
downloadaspectj-8df8db1be53dff9405da3a2edb542af2c28ea75a.tar.gz
aspectj-8df8db1be53dff9405da3a2edb542af2c28ea75a.zip
Bug 152982 "org.aspectj Restructure - Phase 2: Move tests" (move Java 5 dependent tests to XLint5Tests)
-rw-r--r--tests/src/org/aspectj/systemtest/xlint/XLint5Tests.java36
-rw-r--r--tests/src/org/aspectj/systemtest/xlint/XLintTests.java7
2 files changed, 36 insertions, 7 deletions
diff --git a/tests/src/org/aspectj/systemtest/xlint/XLint5Tests.java b/tests/src/org/aspectj/systemtest/xlint/XLint5Tests.java
new file mode 100644
index 000000000..e146b0280
--- /dev/null
+++ b/tests/src/org/aspectj/systemtest/xlint/XLint5Tests.java
@@ -0,0 +1,36 @@
+/*******************************************************************************
+ * Copyright (c) 2006 IBM
+ * 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:
+ * Matthew Webster Move Java 5 dependent tests
+ *******************************************************************************/
+package org.aspectj.systemtest.xlint;
+
+import java.io.File;
+
+import junit.framework.Test;
+
+import org.aspectj.testing.XMLBasedAjcTestCase;
+
+public class XLint5Tests extends XMLBasedAjcTestCase {
+
+ public static Test suite() {
+ return XMLBasedAjcTestCase.loadSuite(XLint5Tests.class);
+ }
+
+ protected File getSpecFile() {
+ return new File("../tests/src/org/aspectj/systemtest/xlint/xlint.xml");
+ }
+
+ public void testBug99136(){
+ runTest("Two Xlint warnings wth cflow?");
+ if(ajc.getLastCompilationResult().getWarningMessages().size() != 1){
+ fail();
+ }
+ }
+
+}
diff --git a/tests/src/org/aspectj/systemtest/xlint/XLintTests.java b/tests/src/org/aspectj/systemtest/xlint/XLintTests.java
index 1cc44f1f9..3510ed49e 100644
--- a/tests/src/org/aspectj/systemtest/xlint/XLintTests.java
+++ b/tests/src/org/aspectj/systemtest/xlint/XLintTests.java
@@ -162,13 +162,6 @@ public class XLintTests extends org.aspectj.testing.XMLBasedAjcTestCase {
// if (is15VMOrGreater)
// runTest("7 lint warnings");
// }
-
- public void testBug99136(){
- runTest("Two Xlint warnings wth cflow?");
- if(ajc.getLastCompilationResult().getWarningMessages().size() != 1){
- fail();
- }
- }
}