use of uk.gov.gchq.gaffer.hbasestore.coprocessor.scanner.StoreScanner in project Gaffer by gchq.
the class GafferCoprocessorTest method shouldDelegatePreFlushToStoreScanner.
@Test
public void shouldDelegatePreFlushToStoreScanner() throws IOException {
// Given
final ObserverContext<RegionCoprocessorEnvironment> e = mock(ObserverContext.class);
final Store store = mock(Store.class);
final InternalScanner scanner = mock(InternalScanner.class);
// When
final StoreScanner storeScanner = (StoreScanner) coprocessor.preFlush(e, store, scanner);
// Then
assertNotNull(storeScanner);
}
use of uk.gov.gchq.gaffer.hbasestore.coprocessor.scanner.StoreScanner in project Gaffer by gchq.
the class GafferCoprocessorTest method shouldDelegatePreCompactToStoreScanner.
@Test
public void shouldDelegatePreCompactToStoreScanner() throws IOException {
// Given
final ObserverContext<RegionCoprocessorEnvironment> e = mock(ObserverContext.class);
final Store store = mock(Store.class);
final InternalScanner scanner = mock(InternalScanner.class);
// When
final StoreScanner storeScanner = (StoreScanner) coprocessor.preCompact(e, store, scanner, ScanType.COMPACT_DROP_DELETES);
// Then
assertNotNull(storeScanner);
}
use of uk.gov.gchq.gaffer.hbasestore.coprocessor.scanner.StoreScanner in project Gaffer by gchq.
the class GafferCoprocessorTest method shouldDelegatePreCompactWithRequestToStoreScanner.
@Test
public void shouldDelegatePreCompactWithRequestToStoreScanner() throws IOException {
// Given
final ObserverContext<RegionCoprocessorEnvironment> e = mock(ObserverContext.class);
final Store store = mock(Store.class);
final InternalScanner scanner = mock(InternalScanner.class);
final CompactionRequest request = mock(CompactionRequest.class);
// When
final StoreScanner storeScanner = (StoreScanner) coprocessor.preCompact(e, store, scanner, ScanType.COMPACT_DROP_DELETES, request);
// Then
assertNotNull(storeScanner);
}
Aggregations