Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Test-Driven Development and Aspect Oriented Programming

Take a look at the Pattern Testing project. Its aspects have tests that may
give you some ideas:

http://patterntesting.sourceforge.net/

Also, Wes Isberg posted a response to a similar question on the old user's
list. Search the archive and see if you can find it.

Cheers,
Nick
--- stephen bodnar <stephenbodnar@xxxxxxxxxxx> wrote:
> Greetings,
> 
> I'm looking for some pointers on using Test-Driven Development
> and AspectJ.  I've only recently started studying AOP.
> 
> I would basically like to be able to TDD Aspects, however, I have some 
> questions:
> Since Aspects cannot be instantiated, the only part of a given aspect
> that 
> can
> be tested, by Junit, would be the aspect's static members. Is this
> correct?
> 
> Also, I was wondering if it is possible to TDD the definition of a
> pointcut.
> For example, to be able to test that the given point cut definition
> includes
> certain execution points and excludes certain other execution points
> using
> JUnit's TestCases.
> 
> It would be great if anybody could point me to some resources answering 
> these kinds of questions.
> 
> Thanks,
> Stephen Bodnar
> 
> 
> 
> 
> 
> _________________________________________________________________
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
> http://join.msn.com/?page=features/junkmail
> 
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


Back to the top