Community
Participate
Working Groups
The junitdoclet tool automatically generates JUnit testcases with comments as "markers", which initially look like this : =========== package xxxx; import junit.framework.TestCase; // JUnitDoclet begin import import de.innovations.inreport.engine.data.DataVO; // JUnitDoclet end import [...] =========== If I use the Organize-Import feature the first time, it changes to =========== package xxxx; import java.util.Vector; import junit.framework.TestCase; // JUnitDoclet end import [...] =========== Note that the marker-comment (//JUnitDoclet begin import) has been deleted. If I manually change the source, so that there is no import before the "begin- import"-Marker like this : =========== package xxxx; // JUnitDoclet begin import import junit.framework.TestCase; import java.util.Vector; // JUnitDoclet end import [...] =========== .. everything works fine. No deleted lines, and all new imports being inserted between the begin-end - markers.
This is correct, but we have to live with it for 2.1.
*** This bug has been marked as a duplicate of bug 24804 ***
Verified for 3.8M2 using build I20110912-0800