aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
authorLars Grefer <eclipse@larsgrefer.de>2020-08-14 23:00:48 +0200
committerLars Grefer <eclipse@larsgrefer.de>2020-08-14 23:00:48 +0200
commit17c4c44c4cd0051b2a0884cd70bdbd9ac3d15b0f (patch)
tree897e1ed0d6314c4769dcadd1f2fed4e4a54d0377 /tests/src
parent05f797adde987f614684cb70999be99c549d6826 (diff)
parentdbbbac8dbd25a19c56568623b823eba4e6e2906a (diff)
downloadaspectj-17c4c44c4cd0051b2a0884cd70bdbd9ac3d15b0f.tar.gz
aspectj-17c4c44c4cd0051b2a0884cd70bdbd9ac3d15b0f.zip
Merge branch 'master' of github.com:eclipse/org.aspectj into remove-old-version-checks
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/ajc195/AllTestsAspectJ195.java6
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/ajc196/AllTestsAspectJ196.java8
-rw-r--r--tests/src/test/java/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java23
-rw-r--r--tests/src/test/resources/org/aspectj/systemtest/ajc170/ajc170.xml2
4 files changed, 23 insertions, 16 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc195/AllTestsAspectJ195.java b/tests/src/test/java/org/aspectj/systemtest/ajc195/AllTestsAspectJ195.java
index f8a95a28a..81bba9000 100644
--- a/tests/src/test/java/org/aspectj/systemtest/ajc195/AllTestsAspectJ195.java
+++ b/tests/src/test/java/org/aspectj/systemtest/ajc195/AllTestsAspectJ195.java
@@ -10,6 +10,8 @@
*******************************************************************************/
package org.aspectj.systemtest.ajc195;
+import org.aspectj.util.LangUtil;
+
import junit.framework.Test;
import junit.framework.TestSuite;
@@ -18,7 +20,9 @@ public class AllTestsAspectJ195 {
public static Test suite() {
TestSuite suite = new TestSuite("AspectJ 1.9.5 tests");
suite.addTest(Ajc195Tests.suite());
- suite.addTest(SanityTestsJava13.suite());
+ if (LangUtil.is13VMOrGreater()) {
+ suite.addTest(SanityTestsJava13.suite());
+ }
return suite;
}
}
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc196/AllTestsAspectJ196.java b/tests/src/test/java/org/aspectj/systemtest/ajc196/AllTestsAspectJ196.java
index 1c8e725f0..0cdfe9290 100644
--- a/tests/src/test/java/org/aspectj/systemtest/ajc196/AllTestsAspectJ196.java
+++ b/tests/src/test/java/org/aspectj/systemtest/ajc196/AllTestsAspectJ196.java
@@ -7,6 +7,8 @@
*******************************************************************************/
package org.aspectj.systemtest.ajc196;
+import org.aspectj.util.LangUtil;
+
import junit.framework.Test;
import junit.framework.TestSuite;
@@ -17,8 +19,10 @@ public class AllTestsAspectJ196 {
public static Test suite() {
TestSuite suite = new TestSuite("AspectJ 1.9.6 tests");
- suite.addTest(Ajc196Tests.suite());
- suite.addTest(SanityTestsJava14.suite());
+ if (LangUtil.is14VMOrGreater()) {
+ suite.addTest(Ajc196Tests.suite());
+ suite.addTest(SanityTestsJava14.suite());
+ }
return suite;
}
}
diff --git a/tests/src/test/java/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java b/tests/src/test/java/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java
index 58ab1959d..5cfb4b1a7 100644
--- a/tests/src/test/java/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java
+++ b/tests/src/test/java/org/aspectj/systemtest/incremental/tools/AjdeInteractionTestbed.java
@@ -1,11 +1,11 @@
/********************************************************************
- * Copyright (c) 2005 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://eclipse.org/legal/epl-v10.html
- *
- * Contributors:
+ * Copyright (c) 2005 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://eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
* Andy Clement initial implementation
* Helen Hawkins Converted to new interface (bug 148190)
*******************************************************************/
@@ -15,7 +15,6 @@ import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
-import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
@@ -35,14 +34,14 @@ import junit.framework.TestCase;
/**
* This class uses Ajde in the same way that an IDE (e.g. AJDT) does.
- *
+ *
* The build is driven through 'doBuild(projectName)' but the build can be configured by the methods beginning 'configure***'.
* Information about what happened during a build is accessible through the get*, was*, print* public methods...
- *
+ *
*/
public class AjdeInteractionTestbed extends TestCase {
- public static boolean VERBOSE = false; // do you want the gory details?
+ public static boolean VERBOSE = System.getProperty("aspectj.tests.verbose","true").equalsIgnoreCase("true");
public static String testdataSrcDir = "../tests/multiIncremental";
protected static File sandboxDir;
@@ -552,5 +551,5 @@ public class AjdeInteractionTestbed extends TestCase {
decisions.append(s).append("\n");
log(s);
}
- };
+ }
} \ No newline at end of file
diff --git a/tests/src/test/resources/org/aspectj/systemtest/ajc170/ajc170.xml b/tests/src/test/resources/org/aspectj/systemtest/ajc170/ajc170.xml
index f372197c0..fde9ff259 100644
--- a/tests/src/test/resources/org/aspectj/systemtest/ajc170/ajc170.xml
+++ b/tests/src/test/resources/org/aspectj/systemtest/ajc170/ajc170.xml
@@ -204,7 +204,7 @@
<line text="Annotation count is 4"/>
<line text="@AnnoChar(value=z, ccc=a)" vm="1.2,1.3,1.4,1.5,1.6,1.7,1.8"/>
<line text="@AnnoChar(value='z', ccc='a')" vm="9+"/>
- <line text="@AnnoDouble(value=99.0, ddd=3.0)"/>
+ <line text="@AnnoDouble(value=99.0,ddd=3.0)"/>
<line text="@AnnoFloat(value=6.0, fff=4.0)" vm="1.2,1.3,1.4,1.5,1.6,1.7,1.8"/>
<line text="@AnnoFloat(value=6.0f, fff=4.0f)" vm="9+"/>
<line text="@AnnoShort(value=8, sss=3)"/>