use of akka.persistence.SnapshotProtocol.LoadSnapshotFailed in project controller by opendaylight.
the class LocalSnapshotStoreTest method testDoLoadAsyncWithFailure.
@SuppressWarnings("checkstyle:illegalThrows")
@Test(expected = IOException.class)
public void testDoLoadAsyncWithFailure() throws Throwable {
createSnapshotFile(PERSISTENCE_ID, null, 1, 2000);
TestKit probe = new TestKit(system);
snapshotStore.tell(new SnapshotProtocol.LoadSnapshot(PERSISTENCE_ID, SnapshotSelectionCriteria.latest(), Long.MAX_VALUE), probe.getRef());
LoadSnapshotFailed failed = probe.expectMsgClass(LoadSnapshotFailed.class);
throw failed.cause();
}
Aggregations