I think it would be quite difficult to automate test writing.  I think
Sebastien needs to look differently at the tests.  Tests should be
written first and run against an interface w/ mock objects.  This is one
of the major benifits of session beans/spring service/ and the whole
DependencyInjection thing.  You can model, write a test that matches
your requirements and then implement until your tests pass.

Now that's not to say that you can't stub the infrastructure out for
testing.  You might be able to take it as far as, say, the <<Services>>
and <<Entities>> are now.  You draw a line between the service and the
dao and it gives you access to the dao in the service.  It doesn't
implement your business logic for you.  That would be next to impossible
for any MDA framework today to do.

-Tim
 
On Fri, 2005-04-29 at 09:22 -0600, Chad Brandon wrote:
> Well you wouldn't need to understand the internals per say...but just 
> how a cartridge and metafacades work (we have plenty of examples and 
> documentation on that :))
> 
> Sebastien Arbogast wrote:
> 
> >lol I was waiting for that one. The thing is that I would have to
> >understand the internals of AndroMDA first ;-P But why not. I'll think
> >of it...
> >
> >On 4/29/05, Chad Brandon <[EMAIL PROTECTED]> wrote:
> >  
> >
> >>Sebastien Arbogast wrote:
> >>
> >>    
> >>
> >>>Hi,
> >>>
> >>>Just a small suggestion. Has anyone ever thought of implementing a
> >>>JUnit (or any testing framework) cartridge ? Is it possible ?
> >>>Because most of the time people hesitate to write unit tests because
> >>>it's quite a redundant task for the structure. And it seems to me that
> >>>if it was more... automatic, I could concentrate more on my tests.
> >>>Moreover another advantage of AndroMDA is that (most of) the code it
> >>>generates doesn't need testing (DAO's, services) so there would only
> >>>be Entity and service implementations to test. And who knows maybe
> >>>such a complement would make it possible for AndroMDA to fit perfectly
> >>>in continuous integrations servers like the new Continuum from
> >>>Maven...
> >>>Is it just a dream ? ;-)
> >>>
> >>>
> >>>      
> >>>
> >>No, not a dream :), definitely possible to write one, just none of the
> >>developers have done it.  If you wanted to write one and contribute it,
> >>it would be a appreciated :)
> >>
> >>-------------------------------------------------------
> >>SF.Net email is sponsored by: Tell us your software development plans!
> >>Take this survey and enter to win a one-year sub to SourceForge.net
> >>Plus IDC's 2005 look-ahead and a copy of this survey
> >>Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
> >>_______________________________________________
> >>Andromda-user mailing list
> >>Andromda-user@lists.sourceforge.net
> >>https://lists.sourceforge.net/lists/listinfo/andromda-user
> >>
> >>    
> >>
> >
> >
> >  
> >
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Tell us your software development plans!
> Take this survey and enter to win a one-year sub to SourceForge.net
> Plus IDC's 2005 look-ahead and a copy of this survey
> Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
> _______________________________________________
> Andromda-user mailing list
> Andromda-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/andromda-user



-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to