Uploaded image for project: 'BlueJ'
  1. BlueJ
  2. BLUEJ-38

Default Assertions Type for Unit Tests on double Return Types

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0.5
    • Component/s: TestMgr

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              davmac Davin McCall
              Reporter:
              mik Michael K├Âlling
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: