From e9f14f107361d9cef5582c2d2a8e657691e76ec6 Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Sat, 26 Jan 2013 05:28:14 +0000 Subject: [PATCH] HBASE-7669 Addendum fixes TestPriorityRpc git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1438853 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/hadoop/hbase/regionserver/TestPriorityRpc.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestPriorityRpc.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestPriorityRpc.java index 82840c509a0..8ba27bb254f 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestPriorityRpc.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestPriorityRpc.java @@ -85,7 +85,7 @@ public class TestPriorityRpc { HRegionInfo mockRegionInfo = Mockito.mock(HRegionInfo.class); Mockito.when(mockRS.getRegion((RegionSpecifier)Mockito.any())).thenReturn(mockRegion); Mockito.when(mockRegion.getRegionInfo()).thenReturn(mockRegionInfo); - Mockito.when(mockRegionInfo.isMetaRegion()).thenReturn(true); + Mockito.when(mockRegionInfo.isMetaTable()).thenReturn(true); qosFunction.setRegionServer(mockRS); assertTrue (qosFunction.apply(rpcRequest) == HConstants.HIGH_QOS); } @@ -132,14 +132,14 @@ public class TestPriorityRpc { Mockito.when(mockRegionScanner.getRegionInfo()).thenReturn(mockRegionInfo); Mockito.when(mockRS.getRegion((RegionSpecifier)Mockito.any())).thenReturn(mockRegion); Mockito.when(mockRegion.getRegionInfo()).thenReturn(mockRegionInfo); - Mockito.when(mockRegionInfo.isMetaRegion()).thenReturn(true); + Mockito.when(mockRegionInfo.isMetaTable()).thenReturn(true); qosFunction.setRegionServer(mockRS); assertTrue (qosFunction.apply(rpcRequest) == HConstants.HIGH_QOS); //the same as above but with non-meta region - Mockito.when(mockRegionInfo.isMetaRegion()).thenReturn(false); + Mockito.when(mockRegionInfo.isMetaTable()).thenReturn(false); assertTrue (qosFunction.apply(rpcRequest) == HConstants.NORMAL_QOS); }