Community
Participate
Working Groups
I have a few examples of JUnit tests cases for SAT4J that inherit a custom TestCase class. See e.g. that one: http://www.sat4j.org/maven21/org.sat4j.core/xref-test/index.html I use the automatic organize import on save action. If I remove the import junit.framework.TestCase; statement in the code, organize import will add it on save. When I compile that code using eclipse compiler, I got a warning that the import is not used. I guess that such issue has been around for a while (at least one year). I just noticed it today. I am running Version: 3.6.0 Build id: I20100426-0852 on Linux GTK2/64.
It looks like TestCase is used in Javadoc and hence if Javadoc processing is enabled (Java > Compiler > Javadoc) it will add the import. Of course if you then compile it without that option enabled then it will complain about the import.