ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From videophool <>
Subject nested static class causing junit failure
Date Wed, 09 Jun 2010 15:11:05 GMT

In some junit code, I have a nested class that is private and static.  This
class implements an interface that is used by the code under test.  The
junit tests work fine in Eclipse, but fail under ant.  The failures are: 

    MyTestClass$NestedClass "Caused an ERROR Test class should have public
zero-argument constructors.
    MyTestClass$NestedClass "Caused an ERROR No runnable methods.

I need this class to provide psuedo data throug an interface that the code
under test requires.  Is there someway to mark the nested class so that
junit-ant does not assume that it is used for nested tests?
View this message in context:
Sent from the Ant - Dev mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message