use of uk.gov.gchq.gaffer.named.operation.cache.INamedOperationCache in project Gaffer by gchq.
the class NamedOperationHandlerTest method shouldLoadCacheFromOperationsDeclarationsFile.
@Test
public void shouldLoadCacheFromOperationsDeclarationsFile() throws SerialisationException {
final InputStream s = StreamUtil.openStream(getClass(), "NamedOperationDeclarations.json");
final OperationDeclarations deserialised = json.deserialise(s, OperationDeclarations.class);
INamedOperationCache cache = ((AddNamedOperationHandler) deserialised.getOperations().get(0).getHandler()).getCache();
assert (cache instanceof MockNamedOperationCache);
}
Aggregations