[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] Testing AOP code
|
Hi,
Is there some documentation
? Eclipse shows a compile error in my unit test code
when
it refers to inter-type declarations. So now I am looking
for more information.
I never noticed
there to be anything different when writing test classes as compared
to other classes in relation to aspects, intertype declarations or
otherwise. Are you compiling your test cases w/ ajc (using Eclipse AJDT)? What
is the compiler error you receive?
If you are
introducing intance variables into interfaces you will not be able to access
these (trivially) from non-aspectj code. ajc generates getters and setters for
these w/ a little mungled names.
I am trying to write test code that refers to some
inter-type declarations. How can do this with eclipse ?
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Antti
Karanta
Sent: Wednesday, August 17, 2005 3:41 PM
To:
aspectj-users@xxxxxxxxxxx
Subject: RE: [aspectj-users] Testing AOP
code
Hi,
My Junit tests don't compile when I am
testing when inter-type declarations are involved. Should
unit
tests also be aspects ?
My
JUnit tests compile and run fine testing "aspectized" code (advice,
declarations, intruductions... the whole thing). What is the compiler error
you receive?
Note that depending on your aspects you may need to compile the unit tests w/
ajc, too, as otherwise e.g. call - pointcuts will not be handled in the test
code.
-Antti-
This message is
for the designated recipient only and may contain privileged, proprietary, or
otherwise private information. If you have received it in error, please notify
the sender immediately and delete the original. Any other use of the email by
you is prohibited.