Repository: hbase
Updated Branches:
  refs/heads/master ea819d173 -> 022a348d6


HBASE-19721 Unnecessary stubbings in TestReversedScannerCallable

Signed-off-by: Michael Stack <st...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/022a348d
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/022a348d
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/022a348d

Branch: refs/heads/master
Commit: 022a348d612b4471877012ca8a0a114ba222f18e
Parents: ea819d1
Author: Mike Drob <md...@apache.org>
Authored: Sat Jan 6 08:51:19 2018 -0600
Committer: Michael Stack <st...@apache.org>
Committed: Sat Jan 6 08:58:17 2018 -0600

----------------------------------------------------------------------
 .../apache/hadoop/hbase/client/TestReversedScannerCallable.java   | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/022a348d/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestReversedScannerCallable.java
----------------------------------------------------------------------
diff --git 
a/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestReversedScannerCallable.java
 
b/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestReversedScannerCallable.java
index 6c2d0a6..7ad7fcb 100644
--- 
a/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestReversedScannerCallable.java
+++ 
b/hbase-client/src/test/java/org/apache/hadoop/hbase/client/TestReversedScannerCallable.java
@@ -57,15 +57,12 @@ public class TestReversedScannerCallable {
     Configuration conf = Mockito.mock(Configuration.class);
     HRegionLocation regionLocation = Mockito.mock(HRegionLocation.class);
     ServerName serverName = Mockito.mock(ServerName.class);
-    HRegionInfo regionInfo = Mockito.mock(HRegionInfo.class);
 
     Mockito.when(connection.getConfiguration()).thenReturn(conf);
     Mockito.when(regionLocations.size()).thenReturn(1);
     
Mockito.when(regionLocations.getRegionLocation(0)).thenReturn(regionLocation);
     Mockito.when(regionLocation.getHostname()).thenReturn("localhost");
-    Mockito.when(regionLocation.getRegionInfo()).thenReturn(regionInfo);
     Mockito.when(regionLocation.getServerName()).thenReturn(serverName);
-    Mockito.when(regionInfo.containsRow(ROW_BEFORE)).thenReturn(true);
     Mockito.when(scan.includeStartRow()).thenReturn(true);
     Mockito.when(scan.getStartRow()).thenReturn(ROW);
   }

Reply via email to