[BLUEJ-65] Can't create a JUnit test class for enum, abstract class, or interface
I can, of course, create one by hand, using "New Class...", but then it doesn't follow its associated class around on the screen. When I right-click on the box for an enum, abstract class, or interface, the popup menu doesn't include "Create Test Class".
Some might wonder why you need a test class for an abstract class or interface; see http://c2.com/cgi/wiki?AbstractTestCases for some answers.
But even if not, enums are very concrete, and can have all kinds of methods in them, and these methods deserve to be tested.
------- Comment BLUEJ-1 From Bruce Quig 2006-12-04 03:30:20 [reply] ------- I have addressed the Enum "Create Test Class" issue, and committed to repository for inclusion in next bluej version. Supporting the same for abstract classes and interfaces is something we are still undecided upon. I'll leave the issue as open but with a lower priority while we debate supporting abstract classes and interfaces.
Issue metadata
- Issue type: Task
- Priority: Low