If the ``++suite++`` method in a JUnit 3 ``++TestCase++`` is not declared correctly, it will not be used. Such a method must be named "suite", have no arguments, be ``++public static++``, and must return either a ``++junit.framework.Test++`` or a ``++junit.framework.TestSuite++``.
Similarly, ``++setUp++`` and ``++tearDown++`` methods that aren't properly capitalized will also be ignored.
@Ann, perhaps this is a good time to introduce a new tag like "test" or "unit-test" and perhaps also "junit"
=== on 10 Jun 2020, 09:21:43 Quentin Jaquier wrote:
This rule targets an old version of JUnit (version 3, JUnit 4 has been released more than 10 years ago) and the current implementation behaves poorly in detecting potential ``++suite++`` methods, raising false positives, even on old code.
We do not feel that fixing the current implementation is worth the added value of this rule, we therefore decided to deprecate it.
In addition, we implementedRSPEC-5826 to target a similar problem in newer versions of JUnit.
=== on 16 Jul 2020, 15:23:46 Ann Campbell wrote:
\[~quentin.jaquier] you added labels to this rule yesterday. This morning the automation removed them because this rule is deprecated. FYI.