@Test public void testNoBulkLoadChecksOnNoSnapshot() { ActivePolicyEnforcement ape = new ActivePolicyEnforcement( new HashMap<TableName, SpaceViolationPolicyEnforcement>(), Collections.<TableName,SpaceQuotaSnapshot> emptyMap(), mock(RegionServerServices.class)); SpaceViolationPolicyEnforcement enforcement = ape.getPolicyEnforcement( TableName.valueOf("nonexistent")); assertFalse("Should not check bulkloads", enforcement.shouldCheckBulkLoads()); }
@Test public void testNoBulkLoadChecksOnNoSnapshot() { ActivePolicyEnforcement ape = new ActivePolicyEnforcement( new HashMap<TableName, SpaceViolationPolicyEnforcement>(), Collections.<TableName,SpaceQuotaSnapshot> emptyMap(), mock(RegionServerServices.class)); SpaceViolationPolicyEnforcement enforcement = ape.getPolicyEnforcement( TableName.valueOf("nonexistent")); assertFalse("Should not check bulkloads", enforcement.shouldCheckBulkLoads()); }