ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject RE: junit test runner enhancements
Date Thu, 14 Apr 2005 13:57:30 GMT
> From: Steve Loughran []
> I think you cant see if a class is abstract without loading it (or
> BCEL). Load-time checking is best done in the runner, as the classpath
> is all set up there.

If you use BCEL (or better yet ASM since it's lighter weight and
you don't need a classpath. Just the .class file at hand should tell you
whether the class is abstract or not.

You could also count the number of public void testXyz() methods, but
only define in that one .class and not its super classes (at least not
without a classpath to lookup the parents, but it's overkill IMHO). --DD

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

View raw message