Following the European Dream vs. the American one? Ajax in the J2EE Blueprints
Apr 13

aUnit 0.1: Unit Testing Aspects

AOP, Java, Tech Add comments

Good ole Russ Miles has announced aUnit.

The big question, is how long will it take before we see aTest NG! :)

Hi everyone,

The first release of the source and binary distribution of aUnit is now available from www.aunit.org (via Sourceforge). This release contains a framework that piggybacks on the JUnit framework so it can take advantage of the existing JUnit integration with Eclipse. The aUnit framework executes a series of test steps that each present a representative context to the aspect being tested, executing the corresponding advice as required by the test developer.

This release relies on AspectJ 5M2 and Java 5 (due to the use of annotations) but in the next revision I’m hoping that we can put something together that works without the need for annotations (using something like the ASM to construct implicit contexts).

The important thing is that this is a working test framework now with a set of examples available in the source download to show you how to create aUnit tests. I’m now looking to put together some how-tos over the next week or so and then some more comprehensive tutorials as the feature set matures.

Thanks to everyone for their suggestions, especially that AspectJ team. Hopefully now aUnit can mature into something truly useful.

Have Fun and any support in the development of aUnit is greatly appreciated!

Cheers,

Russ Miles

3 Responses to “aUnit 0.1: Unit Testing Aspects”

  1. Anonymous Says:

    If you are using AOP, it’s pretty clear to me you should use “real” testing and not just “unit” testing.

    Cross-cutting concern at the class level? Uh?

  2. armend Says:

    what the fucking

  3. Joao Almeida Says:

    Hello!

    Where can I find a complete example from aUnit?!
    The last post example isn’t working.

    Thanks

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: Type in the word 'ajax'