[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] How to test load-time-weaving with Equinox Aspects?

Jens,

Very good question!

To answer that we have to define what we mean with unit testing.

If we really want to test the single units (classes and aspects) in isolation, we have to test the classes and aspects separately. As aspects themselves are hard (or not at all) testable, we have to write some testee classes which will be woven with the aspects.

If we want to use JUnit or something like that in order to perform some kind of integration testing, we of course can take our aspects and the classes which are our intended targets for weaving altogether and see whether the woven code behaves as expected. As far as I can guess from what you wrote I think this is what you and your mate intend to do.

Well, there is nothing special about running tests with Equinox Aspects. You have to use the same settings as for running systems with Equinox Aspects, i.e. specifying the framework extension, creating the aspect bundles etc. In the CVS there are some examples ...

Cheers
Heiko

On 15.12.2008, at 13:24, Jens Goldhammer wrote:


Hello mailing list,

we have successfully integrated some aspects in our eclipse rcp product.
That´s really fine because it prevents us from stupid work to log each
method :-)


A member of my development team controls the junit tests and wants me to
write some tests to see that the aspects are working. How can I do that? Is
there something special for aspect testing?


Thanks,
Jens
--
View this message in context: http://www.nabble.com/How-to-test-load-time-weaving-with-Equinox-Aspects--tp21012981p21012981.html
Sent from the Equinox - Dev mailing list archive at Nabble.com.

_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev