Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
salander85 committed Oct 31, 2023
1 parent ea6e371 commit 09f4964
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void getQuery_ShouldBuildStateQuery() {
}

@Test
void syncWithError_WhenNoKeyIsProvided_ShouldContinueAndLogError() {
void transform_WhenNoKeyIsProvided_ShouldContinueAndLogError() {
// preparation
final ProjectApiRoot sourceClient = mock(ProjectApiRoot.class);
final List<State> stateTypePage =
Expand All @@ -125,12 +125,9 @@ void syncWithError_WhenNoKeyIsProvided_ShouldContinueAndLogError() {
assertThat(syncerTestLogger.getAllLoggingEvents())
.anySatisfy(
loggingEvent -> {
assertThat(loggingEvent.getMessage())
.contains(
NullPointerException.class.getCanonicalName()
+ ": StateDraft: key is missing");
assertThat(loggingEvent.getMessage()).contains("StateDraft: key is missing");
assertThat(loggingEvent.getThrowable().isPresent()).isTrue();
assertThat(loggingEvent.getThrowable().get().getCause().getCause())
assertThat(loggingEvent.getThrowable().get())
.isInstanceOf(NullPointerException.class);
});
}
Expand Down

0 comments on commit 09f4964

Please sign in to comment.