Well, AFAIK the goal of xdoclet is to reduce the double maintenance.
The case exists in JUnit test cases which have to be grouped into
the test suites, and in that case you need to create the special suite
classes
which include the names of test cases. This sounds for me like a
double-maintenance.

The way I would use xdoclet for test cases is that I would not create
test suite classes. Instead I would include @junit:test-case doclet in the
test
and have xunit generate the suite classes for me.

One of the way to do that is to create suites for every package containing
test cases.
The suite has to invoke suites of the subclasses. Like if I have the
following hierarchy
of tests:

com.zzz.test.user : UserTest, UserDataTest, MMTest
com.zzz.test.user.customer: CustomerTest, DateOfBirthTest, KKKTest,
com.zzz.test.business: BusinessTest, BusinessDataTest,  LLLTest

xdoclet will generate the folloving classes:

com.zzz.test.user.customer.TestingSuite invoking CustomerTest,
DateOfBirthTest, KKKTest,
com.zzz.test.user.TestingSuite invoking UserTest, UserDataTest, MMTest as
well as
            com.zzz.test.user.customer.TestingSuite
com.zzz.test.business.TestingSuite invoking BusinessTest, BusinessDataTest,
LLLTest
com.zzz.test.TestingSuite invoking com.zzz.test.user.TestingSuite and
              com.zzz.test.business.TestingSuite

By "invoking" I mean in the method "suite" you add a line:
    suite.addTest(new TestSuite(UserTest.class));
or
    suite.addTest(com.zzz.test.user.customer.TestingSuite.suite());

If this feature is useful for everybody I can participate in development of
it.

Michael.


----- Original Message -----
From: "Ara Abrahamian" <[EMAIL PROTECTED]>
To: "'Michael Larionov'" <[EMAIL PROTECTED]>; "'Xdoclet mailing
list'" <[EMAIL PROTECTED]>
Sent: Saturday, October 13, 2001 1:18 PM
Subject: RE: [Xdoclet-user] xdoclet for JUnit?


> What exactly do you want it to do?
>
> Ara.
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:xdoclet-user-
> > [EMAIL PROTECTED]] On Behalf Of Michael Larionov
> > Sent: Saturday, October 13, 2001 6:37 PM
> > To: Xdoclet mailing list
> > Subject: [Xdoclet-user] xdoclet for JUnit?
> >
> > Hi ,
> >
> > I am just wondering if someone is developing xdoclet for JUnit test
> cases.
> >
> > Thanks!
> >
> > Michael.
> >
> >
> > _______________________________________________
> > Xdoclet-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to