new DatabaseServerCompatibility(version).start();
}
@Test
public void shouldLogWarningIfRequiresUpgrade() {
DatabaseVersion version = mock(DatabaseVersion.class);
when(version.getStatus()).thenReturn(DatabaseVersion.Status.REQUIRES_UPGRADE);
new DatabaseServerCompatibility(version).start();
// oh well... how to simply test logging ?
// Let's assume that this test verifies that no error is raised.
}