ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <DDevie...@lgc.com>
Subject RE: junit test runner enhancements
Date Thu, 14 Apr 2005 13:57:30 GMT
> From: Steve Loughran [mailto:stevel@apache.org]
> 
> I think you cant see if a class is abstract without loading it (or
using
> 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
faster),
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message