Skip to content

Commit

Permalink
GH-3 - Make tests for DatabaseSchemaInitializer more robust against e…
Browse files Browse the repository at this point in the history
…xecution order.

The tests previously asserted on no entries being found in the event publication tables. As other tests might have been run before, they could already contain some.
  • Loading branch information
odrotbohm committed Oct 21, 2022
1 parent badea78 commit f82cc11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void doesNotRegisterAnInitializerBean() {

@Test // GH-3
void shouldCreateDatabaseSchemaOnStartUp() {
assertThat(operations.queryForObject(COUNT_PUBLICATIONS, Long.class)).isEqualTo(0);
assertThatNoException().isThrownBy(() -> operations.queryForObject(COUNT_PUBLICATIONS, Long.class));
}
}

Expand Down

0 comments on commit f82cc11

Please sign in to comment.