Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-19721

Unnecessary stubbings detected in test class: TestReversedScannerCallable

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-beta-1, 2.0.0
    • test
    • None
    • Reviewed

    Description

      Found by JMS on the mailing list:

      -------------------------------------------------------------------------------
      Test set: org.apache.hadoop.hbase.client.TestReversedScannerCallable
      -------------------------------------------------------------------------------
      Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.515 s <<<
      FAILURE! - in org.apache.hadoop.hbase.client.TestReversedScannerCallable
      unnecessary Mockito
      stubbings(org.apache.hadoop.hbase.client.TestReversedScannerCallable)  Time
      elapsed: 0.014 s  <<< ERROR!
      org.mockito.exceptions.misusing.UnnecessaryStubbingException:
      
      Unnecessary stubbings detected in test class: TestReversedScannerCallable
      Clean & maintainable test code requires zero unnecessary code.
      Following stubbings are unnecessary (click to navigate to relevant line of
      code):
        1. -> at
      org.apache.hadoop.hbase.client.TestReversedScannerCallable.setUp(TestReversedScannerCallable.java:66)
        2. -> at
      org.apache.hadoop.hbase.client.TestReversedScannerCallable.setUp(TestReversedScannerCallable.java:68)
      Please remove unnecessary stubbings. More info: javadoc for
      UnnecessaryStubbingException class.
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mdrob Mike Drob Assign to me
            jmspaggi Jean-Marc Spaggiari
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment