[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] Problem with aspectj and JUnit
|
-----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-----