use of org.bboxdb.network.packages.NetworkRequestPackage in project bboxdb by jnidzwetzki.
the class TestTupleListFuture method testRejectedExeption.
@Test(expected = RejectedException.class)
public void testRejectedExeption() throws InterruptedException, RejectedException {
final TupleListFutureStore tupleListFutureStore = new TupleListFutureStore();
tupleListFutureStore.shutdown();
final BBoxDBConnection connection = Mockito.mock(BBoxDBConnection.class);
final Supplier<NetworkRequestPackage> supplier = () -> (null);
final NetworkOperationFuture networkOperationFuture = new NetworkOperationFuture(connection, supplier);
tupleListFutureStore.put(new TupleListFuture(networkOperationFuture, new DoNothingDuplicateResolver(), ""));
}
Aggregations