diff options
author | acolyer <acolyer> | 2005-06-20 10:28:36 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-06-20 10:28:36 +0000 |
commit | 63423ac4b5ea11fc70bd68dd7f37b84798394f53 (patch) | |
tree | 8355e8959b93eae28f79f25c95abd6d5a2281e9c /tests | |
parent | ca6ec31223df4c73df0103a67cb7ce99be75a1aa (diff) | |
download | aspectj-63423ac4b5ea11fc70bd68dd7f37b84798394f53.tar.gz aspectj-63423ac4b5ea11fc70bd68dd7f37b84798394f53.zip |
update aspectjrt.jar in lib and test cases uses MAP in tests to reflect introduction of PointcutExpression interface
Diffstat (limited to 'tests')
-rw-r--r-- | tests/java5/ataspectj/annotationGen/Deow.aj | 4 | ||||
-rw-r--r-- | tests/java5/ataspectj/annotationGen/ReferencePointcuts.aj | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/java5/ataspectj/annotationGen/Deow.aj b/tests/java5/ataspectj/annotationGen/Deow.aj index 8a50e33e3..b07e88355 100644 --- a/tests/java5/ataspectj/annotationGen/Deow.aj +++ b/tests/java5/ataspectj/annotationGen/Deow.aj @@ -13,7 +13,7 @@ public aspect Deow { if (!deows[1].isError()) throw new RuntimeException("Expecting an error"); if (!deows[0].getMessage().equals("dont call system methods")) throw new RuntimeException("Bad message"); if (!deows[1].getMessage().equals("dont call system methods")) throw new RuntimeException("Bad message"); - if (!deows[0].getPointcutExpression().equals("call(* java.lang.System.*(..))")) throw new RuntimeException("Bad pc: " + deows[0].getPointcutExpression()); - if (!deows[1].getPointcutExpression().equals("call(* java.lang.System.*(..))")) throw new RuntimeException("Bad pc: " + deows[0].getPointcutExpression()); + if (!deows[0].getPointcutExpression().toString().equals("call(* java.lang.System.*(..))")) throw new RuntimeException("Bad pc: " + deows[0].getPointcutExpression()); + if (!deows[1].getPointcutExpression().toString().equals("call(* java.lang.System.*(..))")) throw new RuntimeException("Bad pc: " + deows[0].getPointcutExpression()); } }
\ No newline at end of file diff --git a/tests/java5/ataspectj/annotationGen/ReferencePointcuts.aj b/tests/java5/ataspectj/annotationGen/ReferencePointcuts.aj index 782021b24..e6014d7da 100644 --- a/tests/java5/ataspectj/annotationGen/ReferencePointcuts.aj +++ b/tests/java5/ataspectj/annotationGen/ReferencePointcuts.aj @@ -9,10 +9,10 @@ public aspect ReferencePointcuts { public static void main(String[] args) throws NoSuchPointcutException { AjType myType = AjTypeSystem.getAjType(ReferencePointcuts.class); Pointcut p1 = myType.getPointcut("pc1"); - if (!p1.getPointcutExpression().equals("call(* *(..))")) + if (!p1.getPointcutExpression().toString().equals("call(* *(..))")) throw new RuntimeException("unexpected pc expression: " + p1.getPointcutExpression()); Pointcut p2 = myType.getPointcut("pc2"); - if (!p2.getPointcutExpression().equals("(pc1() || execution(* *(..)))")) + if (!p2.getPointcutExpression().toString().equals("(pc1() || execution(* *(..)))")) throw new RuntimeException("unexpected pc expression: " + p2.getPointcutExpression()); } |