Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2781

Add PowerMock library to allow mocking of static methods by Roo's own unit tests

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.2.0.M1
    • Fix Version/s: 1.2.0.RC1
    • Component/s: TESTING
    • Labels:
      None

      Description

      This improvement does not affect projects generated by Roo; it's about making it easier to write unit tests for Roo's own codebase.

      We currently use Mockito as our internal mocking library. One of its limitations is that it can't mock static methods. We should add PowerMock to the test classpath to provide this capability, allowing unit tests to be more easily written without large-scale refactoring of the target code.

        Attachments

          Activity

            People

            Assignee:
            aswan Andrew Swan
            Reporter:
            aswan Andrew Swan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: