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

Unnecessary stubbings detected in test class: TestReversedScannerCallable

    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

        1. HBASE-19721.patch
          2 kB
          Mike Drob

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: