]> source.dussan.org Git - aspectj.git/commitdiff
Bug 152982 "org.aspectj Restructure - Phase 2: Move tests" (move Java 5 dependent...
authormwebster <mwebster>
Wed, 9 Aug 2006 12:54:13 +0000 (12:54 +0000)
committermwebster <mwebster>
Wed, 9 Aug 2006 12:54:13 +0000 (12:54 +0000)
tests/src/org/aspectj/systemtest/xlint/XLint5Tests.java [new file with mode: 0644]
tests/src/org/aspectj/systemtest/xlint/XLintTests.java

diff --git a/tests/src/org/aspectj/systemtest/xlint/XLint5Tests.java b/tests/src/org/aspectj/systemtest/xlint/XLint5Tests.java
new file mode 100644 (file)
index 0000000..e146b02
--- /dev/null
@@ -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();
+               }
+       }
+
+}
index 1cc44f1f993f4051ba06b6d7293fde48d3dbbf68..3510ed49e35a2d05432aa353d1f0c080a4262bea 100644 (file)
@@ -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();
-         }
-  }
 
 }