It might be neccessary to consider the common JUnit annotations as well,
e.g. @Test, @RunWith, etc. Inheriting from TestCase is not recommended
anymore in JUnit. Test methods and classes are now identified by their
annotations.
Regards, Steffen
Am 21.12.2011, 00:28 Uhr, schrieb Hani Abdeen <hani.abdeen(a)gmail.com>om>:
Hi,
Using VerveineJ, the stub classes realted to unit tests (TestCase,
TestSuit
and Test classes) are not imported
also their namesapce junit.framework
These classes are imported using inFamix.
junit.framework.TestCase class is particularly important in order to
automatically detect unit test classes: TestCase subclassHierarchy.
If this class is not available in the moose model then the only way to
automatically detect unit test classes is by detecting the classes that
their names are postfixed by 'Tests':
mooseModel allClasses select: [:c| '*Tests' match: c name]
such a way can provide us with wrong results!
Cheers,
Hani
P.S.: use-case JFreechart project:
http://sourceforge.net/projects/jfreechart/files/latest/download
which includes about 380 test classes (classes inherit from TestCase)
--