summaryrefslogtreecommitdiffstats
path: root/aspectj5rt/testsrc/org
diff options
context:
space:
mode:
authoravasseur <avasseur>2005-04-26 08:54:13 +0000
committeravasseur <avasseur>2005-04-26 08:54:13 +0000
commit3e1783bc03e372ad8957e5e24e41b5c7d0e7dd26 (patch)
tree14f5f5886349aee66c1cf6ffafa22088de277844 /aspectj5rt/testsrc/org
parentd00224721f28759cee41f2759979248ddb69858d (diff)
downloadaspectj-3e1783bc03e372ad8957e5e24e41b5c7d0e7dd26.tar.gz
aspectj-3e1783bc03e372ad8957e5e24e41b5c7d0e7dd26.zip
fix local build so that test run with 1.5
fix Adrian test that were having some assumption on ordering which happens to fail with my 1.5 compiler
Diffstat (limited to 'aspectj5rt/testsrc/org')
-rw-r--r--aspectj5rt/testsrc/org/aspectj/internal/lang/reflect/AjTypeTests.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/aspectj5rt/testsrc/org/aspectj/internal/lang/reflect/AjTypeTests.java b/aspectj5rt/testsrc/org/aspectj/internal/lang/reflect/AjTypeTests.java
index bae481e72..04a987bf4 100644
--- a/aspectj5rt/testsrc/org/aspectj/internal/lang/reflect/AjTypeTests.java
+++ b/aspectj5rt/testsrc/org/aspectj/internal/lang/reflect/AjTypeTests.java
@@ -116,8 +116,10 @@ public class AjTypeTests extends TestCase {
AjType<Foo> foo = AjTypeSystem.getAjType(Foo.class);
AjType[] fooTypes = foo.getDeclaredAjTypes();
assertEquals(2,fooTypes.length);
- assertEquals("org.aspectj.internal.lang.reflect.Foo$Z",fooTypes[0].getName());
- assertEquals("org.aspectj.internal.lang.reflect.Foo$XX",fooTypes[1].getName());
+ // Alex -> Adrian: looks like you can not make assumption on the ordering
+ String s = " " + fooTypes[0].getName() + " " + fooTypes[1].getName();
+ assertTrue(s.indexOf(" org.aspectj.internal.lang.reflect.Foo$Z") >= 0);
+ assertTrue(s.indexOf(" org.aspectj.internal.lang.reflect.Foo$XX") >= 0);
}
public void testGetConstructor() throws Exception {