use of uk.gov.gchq.gaffer.named.operation.DeleteNamedOperation in project Gaffer by gchq.
the class NamedOperationExample method deleteNamedOperation.
public void deleteNamedOperation() {
// ---------------------------------------------------------
final DeleteNamedOperation operation = new DeleteNamedOperation.Builder().name("2-hop").build();
// ---------------------------------------------------------
runExampleNoResult(operation);
}
use of uk.gov.gchq.gaffer.named.operation.DeleteNamedOperation in project gaffer-doc by gchq.
the class NamedOperationExample method deleteNamedOperation.
public void deleteNamedOperation() {
// ---------------------------------------------------------
final DeleteNamedOperation operation = new DeleteNamedOperation.Builder().name("2-hop").build();
// ---------------------------------------------------------
runExampleNoResult(operation, null);
}
use of uk.gov.gchq.gaffer.named.operation.DeleteNamedOperation in project Gaffer by gchq.
the class NamedOperationCacheIT method shouldBeAbleToDeleteNamedOperationFromCache.
private void shouldBeAbleToDeleteNamedOperationFromCache() throws OperationException {
// given
final Store store = mock(Store.class);
given(store.getProperties()).willReturn(properties);
new AddNamedOperationHandler().doOperation(add, context, store);
DeleteNamedOperation del = new DeleteNamedOperation.Builder().name("op").build();
GetAllNamedOperations get = new GetAllNamedOperations();
// when
deleteNamedOperationHandler.doOperation(del, context, store);
List<NamedOperationDetail> results = Lists.newArrayList(getAllNamedOperationsHandler1.doOperation(get, context, store));
// then
assertThat(results).isEmpty();
}
Aggregations