[BLUEJ-53] Test recording should qualify enum constants
When recording a test where a method call returns an enum constant, the assertion needs to give the qualified name of the constant (or else the test case won't compile). For example, with the following (class omitted):
public enum Suit \{ CLUB, DIAMOND, HEART, SPADE }
public static Suit thing() \{ return Suit.CLUB; }
generating a simple test method produces
public void testThing() \{ assertEquals(CLUB, Thing.thing()); }
but it needs to be Suit.CLUB .
Issue metadata
- Issue type: Bug
- Priority: Low
- Fix versions: 2.5.0