hbase-issues mailing list archives

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

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

Jean-Marc Spaggiari commented on HBASE-19721:
---------------------------------------------

FYI

jmspaggi@node8:~/hbase-test$ java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)


> 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
>
>
> 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