Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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.