Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [ajdt-dev] Run/Debug as "AspectJ/JUnit


Jimisola,

The reason for the various launch configuration types is because the "Run" wizard is very extensible (in the way we'd like it to be). The "AspectJ/Java Application" configuration is to run aspects with a "main()" method. You can run JUnit tests with LTW under 1.4 using "-Djava.system.classloader" (which is the technique AJDT uses) but you have to manage the classpath yourself.

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx
http://w3.hursley.ibm.com/~websterm/



"Ron Bodkin" <rbodkin@xxxxxxxxxxxxxx>
Sent by: ajdt-dev-bounces@xxxxxxxxxxx

25/08/2006 16:54

Please respond to
AspectJ Development Tools developer discussions <ajdt-dev@xxxxxxxxxxx>

To
"'AspectJ Development Tools developer discussions'" <ajdt-dev@xxxxxxxxxxx>
cc
Subject
RE: [ajdt-dev] Run/Debug as "AspectJ/JUnit





Jimisola,

You can certainly use build-time weaving with the normal JUnit test runner
and it works well. You can also set up load-time weaving with JUnit test
cases. I talked about this in my article "Next Steps With Aspects: After
Learning Advice", see
http://www-128.ibm.com/developerworks/java/library/j-aopwork16/#N10183.  See
also Adrian's blog entry on using aspect libraries:
http://www.aspectprogrammer.org/blogs/adrian/2006/02/a_practical_gui_2.html
If you are using Java 1.4 or earlier, there are options available (use
JRockIt or use bootstrap jars as Alex Vasseur described).

This works well for me in my projects...

-----Original Message-----
From: ajdt-dev-bounces@xxxxxxxxxxx [mailto:ajdt-dev-bounces@xxxxxxxxxxx] On
Behalf Of Jimisola Laursen
Sent: Friday, August 25, 2006 5:55 AM
To: ajdt-dev@xxxxxxxxxxx
Subject: Re: [ajdt-dev] Run/Debug as "AspectJ/JUnit


Hi!

I posted the message below a while back and never got a  reply.
Never actually had time to go back and figure this out myself nor have I
seen another posts regarding my questions.

If I use compile time weaving will aspects then run when I use run/debug
JUnit tests or do I have to do something special? I am wondering since there
is a "AspectJ/Java Application" group.

Regards,
Jimisola


Jimisola Laursen wrote:
>
> Hi!
>
> I notice that there is a "AspectJ/Java Application" group but no
> "AspectJ/JUnit" group.
> Is it not possible to run/debug JUnit tests and have aspects weaved in as
> well?
>
> If so and if is this is by design may I ask why?
>
> Regards,
> Jimisola
>
>
>

--
View this message in context:
http://www.nabble.com/Run-Debug-as-%22AspectJ-JUnit-tf1911272.html#a5982954
Sent from the Eclipse Ajdt - Dev forum at Nabble.com.

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

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


Back to the top