HBASE-2156 finally fixing the test

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1024425 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2010-10-19 21:48:35 +00:00
parent 95c46c0e74
commit 315d5da29b

View File

@ -3686,10 +3686,11 @@ public class TestFromClientSide {
assertTrue(Bytes.equals(result.getValue(HConstants.CATALOG_FAMILY, null), one)); assertTrue(Bytes.equals(result.getValue(HConstants.CATALOG_FAMILY, null), one));
} }
/** /**
* For HBASE-2156 * For HBASE-2156
* @throws Exception * @throws Exception
*/ */
@Test
public void testScanVariableReuse() throws Exception { public void testScanVariableReuse() throws Exception {
Scan scan = new Scan(); Scan scan = new Scan();
scan.addFamily(FAMILY); scan.addFamily(FAMILY);
@ -3700,7 +3701,8 @@ public class TestFromClientSide {
scan = new Scan(); scan = new Scan();
scan.addFamily(FAMILY); scan.addFamily(FAMILY);
assertTrue(scan.getFamilyMap().get(FAMILY).size() == 0); assertTrue(scan.getFamilyMap().get(FAMILY) == null);
assertTrue(scan.getFamilyMap().containsKey(FAMILY));
} }
/** /**