summaryrefslogtreecommitdiffstats
path: root/testing/testsrc
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-05-09 22:55:41 +0000
committerwisberg <wisberg>2003-05-09 22:55:41 +0000
commit84908b0fb71ad81f0a63f0b19f53af6bb9138558 (patch)
treedc6a25f98f336c44cefaafaaa2339f56308ea6da /testing/testsrc
parentdcc9345172eae7f52a59b6c99cabcbb39da5f03a (diff)
downloadaspectj-84908b0fb71ad81f0a63f0b19f53af6bb9138558.tar.gz
aspectj-84908b0fb71ad81f0a63f0b19f53af6bb9138558.zip
including new attributes for round-trip testing
Diffstat (limited to 'testing/testsrc')
-rw-r--r--testing/testsrc/org/aspectj/testing/harness/bridge/AjcSpecTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/testsrc/org/aspectj/testing/harness/bridge/AjcSpecTest.java b/testing/testsrc/org/aspectj/testing/harness/bridge/AjcSpecTest.java
index 06ae38ada..0b2f8365d 100644
--- a/testing/testsrc/org/aspectj/testing/harness/bridge/AjcSpecTest.java
+++ b/testing/testsrc/org/aspectj/testing/harness/bridge/AjcSpecTest.java
@@ -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;