|
From: SourceForge.net <no...@so...> - 2008-02-01 19:17:11
|
Bugs item #1884764, was opened at 2008-02-01 13:17 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1884764&group_id=44253 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: JUnit integration Group: 2: Annoying Status: Open Resolution: None Priority: 5 Private: No Submitted By: Patrick Kruse (pakruse) Assigned to: Nobody/Anonymous (nobody) Summary: JUnit fails with enumerated type open Initial Comment: DrJava fails to execute JUnit tests when there is an enumerated type as the top level class in an open file. Open DrJava. Create and compile two files: one containing only an enumerated type, one containing a dummy JUnit test class that would otherwise trivially pass. Clicking 'Test' brings up a dialog box reading "To unit test all documents, you must first compile all out of sync source files. Would you like to compile all files and run the specified test?" Clicking yes brings up an error dialog reading "All open files must be compiled before running a unit test." Following this is a second error dialog reading "There are no compiled JUnit TestCases available for execution. Perhaps you have not yet compiled your test files." The only way to successfully run the test seems to be to close the enum file. After closing the enum file, the test runs without complaint. I'm currently running drjava-20080124-1942 on Windows XP, with Java 6.1. Also, this should probably be filed as a separate feature request, but are there plans to fix the indentation of enumerated types? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1884764&group_id=44253 |