directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <seelm...@apache.org>
Subject Integration Tests: StockServerISuite and @Factory
Date Sat, 25 Apr 2009 21:48:21 GMT
Hi guys,

I added a factory to the AddIT, that adds two additional partitions. It
worked fine when I run the class standalone, but it didn't work when
running the StockServerISuite.

The StockServerISuite runs several test classes. These test classes have
different cleanup levels, some Level.SUITE and some Level.CLASS. Also,
some of these test classes define there own LdapServerFactory using the
@Factory annotation. I found out that the specific factory is not used
if the previous test class has cleanup level Level.SUITE. An example:

        ...
        ModifyRemoveIT.class,   <- Level.SUITE
        ModifyReplaceIT.class,  <- Factory _not_ used
        ModifyRdnIT.class,
        BindIT.class,
        SimpleBindIT.class,
        MoveIT.class,
        SearchIT.class,         <- Level.CLASS
        NegationSearchIT.class, <- Factory used
        ...

Can we fix this? Should we remove all test classes with own factories
from the suite?

As a workaround I removed the AddIT test class from the suite and added
it to the pom.xml, see [1].

Kind Regards,
Stefan

[1] http://svn.apache.org/viewvc?rev=768609&view=rev

Mime
View raw message