Skip to content

Commit

Permalink
gh-2909 PR changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
GCHQDev404 committed Mar 6, 2023
1 parent 74d4968 commit 0328c47
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static uk.gov.gchq.gaffer.federatedstore.FederatedGraphStorage.USER_IS_ATTEMPTING_TO_OVERWRITE;
import static uk.gov.gchq.gaffer.federatedstore.FederatedStoreTestUtil.SCHEMA_EDGE_BASIC_JSON;
import static uk.gov.gchq.gaffer.federatedstore.FederatedStoreTestUtil.loadSchemaFromJson;
Expand Down Expand Up @@ -460,7 +459,8 @@ public void shouldAddGraphWithHandler() throws Exception {
new Context(testUser),
store);

assertThatThrownBy(() -> store.execute(new GetAllElements(), new Context(testUser)))
.hasStackTraceContaining(TestErrorHandler.TEST_ERROR_HANDLER_FLAG);
assertThatExceptionOfType(Exception.class)
.isThrownBy(() -> store.execute(new GetAllElements(), new Context(testUser)))
.withStackTraceContaining(TestErrorHandler.TEST_ERROR_HANDLER_FLAG);
}
}

0 comments on commit 0328c47

Please sign in to comment.