@Test public void testRemoveAllRules() throws Exception { final Boolean actual = mutation.get(environment); verify(store).removeAll(); assertThat(actual).isTrue(); }
@Override public Boolean get(DataFetchingEnvironment environment) { try { store.removeAll(); } catch (NotificationStoreException e) { LOGGER.error("Unable to remove all rules", e); throw new GraphQLValidationError("Unable to remove all rules"); } return true; }
RemoveAllRulesMutation implements DataFetcher<Boolean> { @Override public Boolean get(DataFetchingEnvironment environment) { try { store.removeAll(); } catch (NotificationStoreException e) { LOGGER.error("Unable to remove all rules", e); throw new GraphQLValidationError("Unable to remove all rules"); } return true; } }
RemoveAllRulesMutation implements DataFetcher<Boolean> { @Override public Boolean get(DataFetchingEnvironment environment) { try { store.removeAll(); } catch (NotificationStoreException e) { LOGGER.error("Unable to remove all rules", e); throw new GraphQLValidationError("Unable to remove all rules"); } return true; } RemoveAllRulesMutation(final RuleStore store); }
RemoveAllRulesMutation implements DataFetcher<Boolean> { @Override public Boolean get(DataFetchingEnvironment environment) { try { store.removeAll(); } catch (NotificationStoreException e) { LOGGER.error("Unable to remove all rules", e); throw new GraphQLValidationError("Unable to remove all rules"); } return true; } RemoveAllRulesMutation(final RuleStore store); @Override Boolean get(DataFetchingEnvironment environment); }
RemoveAllRulesMutation implements DataFetcher<Boolean> { @Override public Boolean get(DataFetchingEnvironment environment) { try { store.removeAll(); } catch (NotificationStoreException e) { LOGGER.error("Unable to remove all rules", e); throw new GraphQLValidationError("Unable to remove all rules"); } return true; } RemoveAllRulesMutation(final RuleStore store); @Override Boolean get(DataFetchingEnvironment environment);  }