Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] AspectJ & JUnit

    Hi,

     I want to write a automated regression testing
tool that can be used on big Java APIs. I want to
record each method which is called, input
parameters,outpus parameters and to generate
automatically JUnit tests. Running second time the
same  tests with same inputs params should result in
same output params. Any difference between different
run of the test of the output parameters should be
reported as a test failed. I have no clue how to start
such a project. Can you suggest me how can I use
AspectJ(combined with JUnit) for achieving such an
objective? Do you know for such a similar open source
project? Thank you.

Regards,
Virgil

--- aspectj-users-request@xxxxxxxxxxx wrote:

> Send aspectj-users mailing list submissions to
> 	aspectj-users@xxxxxxxxxxx
> 
> To subscribe or unsubscribe via the World Wide Web,
> visit
> 
>
https://dev.eclipse.org/mailman/listinfo/aspectj-users
> or, via email, send a message with subject or body
> 'help' to
> 	aspectj-users-request@xxxxxxxxxxx
> 
> You can reach the person managing the list at
> 	aspectj-users-owner@xxxxxxxxxxx
> 
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of aspectj-users digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: badWeaverState exception on iajc w/out
> prior clean
>       (Andy Clement)
>    2. RE: Matching targets cast to a specific type
> (Michael Herrmann)
> 
> 
>
----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 22 Feb 2006 09:10:29 +0000
> From: "Andy Clement" <andrew.clement@xxxxxxxxx>
> Subject: Re: [aspectj-users] badWeaverState
> exception on iajc w/out
> 	prior clean
> To: aspectj-users@xxxxxxxxxxx
> Message-ID:
> <689d61aa0602220110s295dad04l@xxxxxxxxxxxxxx>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> On 21/02/06, Nguyen, Diane <dianen@xxxxxxxxx> wrote:
> >
> > Thanks for the response!
> >
> > Unfortunately, I don't think that's what is
> causing my bad WeaverState
> > exception. I'm using ajdt 1.3.0 (the latest from
> the eclipse AJDT site)
> > and AspectJ 1.5.0 from Dec 20 2005. These are the
> only aspectJ downloads
> > I've installed on my computer, and this is the
> only iajc compilation in
> > my build.xml file.
> >
> > Does it matter what was used to compile the jars
> in my inpath? Just a
> > stab in the dark...
> 
> 
> It may be important - if they contain aspects and
> were built using
> an old build of AspectJ5 then you would see this
> problem.
> 
> 
> thanks again!
> > diane
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
>
http://eclipse.org/pipermail/aspectj-users/attachments/20060222/0b2ca528/attachment.html
> 
> ------------------------------
> 
> Message: 2
> Date: Wed, 22 Feb 2006 17:46:22 +0100 (MET)
> From: "Michael Herrmann" <Michael_Herrmann@xxxxxx>
> Subject: RE: [aspectj-users] Matching targets cast
> to a specific type
> To: aspectj-users@xxxxxxxxxxx
> Message-ID: <2899.1140626782@xxxxxxxxxxxxxx>
> Content-Type: text/plain; charset="us-ascii"
> 
> > ... Indeed, in this use case I
> > think Michael really wants something like target
> but based on the static
> > type of the callee, rather than the statically
> determinable type of the
> > method being called (phew). ...
> 
> That's exactly what I'm looking for and what took me
> a whole email to
> describe :D
> 
> It's a pity that those checks can only be made at
> runtime but I'll have to
> live with it. 
> 
> Thank you all for your quick replies, 
> Michael Herrmann
> 
> -- 
> 10 GB Mailbox, 100 FreeSMS/Monat
> http://www.gmx.net/de/go/topmail
> +++ GMX - die erste Adresse f�r Mail, Message,
More
> +++
> 
> 
> ------------------------------
> 
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 
> 
> End of aspectj-users Digest, Vol 12, Issue 31
> *********************************************
> 



Back to the top