Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • Build, Tests
    • None

    Description

      This issue upgrades Mockito from 1.10.19 to 2.23.4. The following changes are required.

      • Replace `org.mockito.Matchers` with `org.mockito.ArgumentMatchers`
      • Replace `anyObject` with `any`
      • Replace `getArgumentAt` with `getArgument` and add type annotation.
      • Use `isNull` matcher in case of `null` is invoked.
             saslHandler.channelInactive(null);
        -    verify(handler).channelInactive(any(TransportClient.class));
        +    verify(handler).channelInactive(isNull());
        
      • Make and use `doReturn` wrapper to avoid SI-4775
        private def doReturn(value: Any) = org.mockito.Mockito.doReturn(value, Seq.empty: _*)
        

      Attachments

        Issue Links

          Activity

            People

              dongjoon Dongjoon Hyun
              dongjoon Dongjoon Hyun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: