You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2018/01/06 14:57:41 UTC
hbase git commit: HBASE-19721 Unnecessary stubbings in
TestReversedScannerCallable
Repository: hbase
Updated Branches:
refs/heads/branch-2 34c334d58 -> b0a92bd4e
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/b0a92bd4
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/b0a92bd4
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/b0a92bd4
Branch: refs/heads/branch-2
Commit: b0a92bd4e155f6a3b17e45f7b08a0f3f0bfe88fc
Parents: 34c334d
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:57:20 2018 -0600
----------------------------------------------------------------------
.../apache/hadoop/hbase/client/TestReversedScannerCallable.java | 3 ---
1 file changed, 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase/blob/b0a92bd4/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);
}