GH-3 - Make tests for DatabaseSchemaInitializer more robust against execution 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.
This commit is contained in:
@@ -63,7 +63,7 @@ class DatabaseSchemaInitializerIntegrationTests {
|
||||
|
||||
@Test // GH-3
|
||||
void shouldCreateDatabaseSchemaOnStartUp() {
|
||||
assertThat(operations.queryForObject(COUNT_PUBLICATIONS, Long.class)).isEqualTo(0);
|
||||
assertThatNoException().isThrownBy(() -> operations.queryForObject(COUNT_PUBLICATIONS, Long.class));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user