[BLUEJ-38] Default Assertions Type for Unit Tests on double Return Types
When recording a unit test and invoking a method that returns a double value, older versions of BlueJ automatically set the assertion type to be equals (double,float) and provided the input field for the delta value. In version 2.1.1 the type of assertion always defaults to equals. If students just blindly enter a value (e.g. 40) then the recorder attempts to record the test using the equals method which expects two integer values. The result is that the test code that is generated will not compile. The default assertion type should match the return type of the method when possible.
Issue metadata
- Issue type: Bug
- Priority: Low
- Fix versions: 3.0.5