]> source.dussan.org Git - aspectj.git/commitdiff
including new attributes for round-trip testing
authorwisberg <wisberg>
Fri, 9 May 2003 22:55:41 +0000 (22:55 +0000)
committerwisberg <wisberg>
Fri, 9 May 2003 22:55:41 +0000 (22:55 +0000)
testing/testsrc/org/aspectj/testing/harness/bridge/AjcSpecTest.java

index 06ae38ada1e8c048ec9cf554b3f2924739a64be6..0b2f8365d4920ca87a43aa6ea57caa7421713241 100644 (file)
@@ -57,6 +57,7 @@ public class AjcSpecTest extends TestCase {
         assertEquals(lhsTest.getBugId(), rhsTest.getBugId());
         assertEquals(lhsTest.getTestDirOffset(), rhsTest.getTestDirOffset());
         // XXX suiteDir varies by run..
+        // description, options, paths, comments, keywords
         sameAbstractRunSpec(lhsTest, rhsTest, a);
        }
 
@@ -70,6 +71,8 @@ public class AjcSpecTest extends TestCase {
         // XXX sameList(lhs.globalOptions, rhs.globalOptions, a);
         sameList(lhs.getOptionsList(), rhs.getOptionsList(), a);
         sameList(lhs.getPathsList(), rhs.getPathsList(), a);
+        sameList(lhs.keywords, rhs.keywords, a); // XXX getters
+        assertEquals(lhs.comment, rhs.comment); // XXX getters
         // xml adds sourceloc?
         //sameSourceLocation(lhs.getSourceLocation(), rhs.getSourceLocation(), a);
         // XXX also sourceLocations?
@@ -201,6 +204,8 @@ public class AjcSpecTest extends TestCase {
             rhsSpec = r;
             assertEquals(l.testSrcDirOffset, r.testSrcDirOffset);
             assertEquals(l.compiler, r.compiler);
+            assertEquals(l.includeClassesDir, r.includeClassesDir);
+            assertEquals(l.reuseCompiler, r.reuseCompiler);
         } else if (c == JavaRun.class) {
             JavaRun.Spec l = ((JavaRun) lhs).spec;
             JavaRun.Spec r = ((JavaRun) rhs).spec;
@@ -208,11 +213,15 @@ public class AjcSpecTest extends TestCase {
             rhsSpec = r;
             assertTrue(l.skipTester ==  r.skipTester);
             assertEquals(l.className, r.className);
+            assertEquals(l.javaVersion, r.javaVersion);
+            assertEquals(l.skipTester, r.skipTester);
         } else if (c == IncCompilerRun.class) {
             IncCompilerRun.Spec l = ((IncCompilerRun) lhs).spec;
             IncCompilerRun.Spec r = ((IncCompilerRun) rhs).spec;
             lhsSpec = l;
             rhsSpec = r;
+            assertEquals(l.tag, r.tag);
+            assertEquals(l.fresh, r.fresh);
         } else {
             assertTrue(lhs.equals(rhs));
             return;