[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] Problem with aspectj and JUnit
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Wes,
I have check (and double check) and I am using the same runtime that
can with the Netbeans Module. Do you have any other ideas what might
be causing this?
Thanks,
Brian
Date: Mon, 30 Jun 2003 19:06:40 -0700
From: Wes Isberg <wes@xxxxxxxxxxxxxx>
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users] Problem with aspectj and JUnit
Reply-To: aspectj-users@xxxxxxxxxxx
Are you including the same version of aspectjrt.jar on your runtime
classpath?
Wes
Brian Kidney wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I am trying to uses AspectJ to add auditing to an existing
> application. Basically, I want to output a message any time the execute(...) function is called from one of many classes. The code I have for this is the following:
> - ----------------------------------------------------------
>
> import org.aspectj.lang.*;
>
> /**
> *
> * @author Brian Kidney
> */
> public aspect Aspect_AuditEntry {
>
> // Pointcut for AuditEntry on the calling of the an action
> pointcut audit():
> execution(* *.execute(..));
>
>
> before(): audit()
> {
> System.out.println("Auditing: Brian's Function ");
> }
>
> }
>
> - ----------------------------------------------------------
>
> After this is compiled using the AspectJ compiler (pluggin in
> Netbeans), I get the following error whenever I run my Junit tests:
>
> java.lang.NoSuchMethodError:
> junit.textui.TestRunner.run(Ljunit/framework/Test;)V ...
>
> Has anybody ever seen this? And do you know what I have done wrong?
>
> Thanks,
> Brian Kidney
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 8.0
>
> iQA/AwUBPwBfjeLP0vXx30WgEQLCoQCg4bepVJEUTd90ZX/ro1M6QaKAQD8An0+t
> qNHFMVJDig+/WzYkdYRbqcYS
> =L9Fe
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
>
- --__--__--
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx http://dev.eclipse.org/mailman/listinfo/aspectj-users
End of aspectj-users Digest
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0
iQA/AwUBPwHKTeLP0vXx30WgEQKdHwCbBKQPx7kOhguOh8DTEvb/y9mUlmQAnAys
e+hsFRXHJ604BSiuqPrF7z1t
=a1NK
-----END PGP SIGNATURE-----