hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Drob (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-19721) Unnecessary stubbings detected in test class: TestReversedScannerCallable
Date Sat, 06 Jan 2018 14:56:00 GMT

    [ https://issues.apache.org/jira/browse/HBASE-19721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16314686#comment-16314686
] 

Mike Drob commented on HBASE-19721:
-----------------------------------

I could reproduce this on both master and branch-2

> Unnecessary stubbings detected in test class: TestReversedScannerCallable
> -------------------------------------------------------------------------
>
>                 Key: HBASE-19721
>                 URL: https://issues.apache.org/jira/browse/HBASE-19721
>             Project: HBase
>          Issue Type: Bug
>          Components: test
>            Reporter: Jean-Marc Spaggiari
>            Assignee: Mike Drob
>             Fix For: 2.0.0-beta-2
>
>         Attachments: HBASE-19721.patch
>
>
> Found by JMS on the mailing list:
> {noformat}
> -------------------------------------------------------------------------------
> 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.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message