Skip to content

Commit

Permalink
qa: JUnit4 @ignored and JUnit5 @disabled annotations should be used t…
Browse files Browse the repository at this point in the history
…o disable tests and should provide a rationale
  • Loading branch information
groldan committed Dec 7, 2023
1 parent 43e45d7 commit 14804e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.junit.experimental.theories.Theories;
import org.junit.rules.TemporaryFolder;
import org.junit.runner.RunWith;
import org.springframework.context.annotation.Bean;
import org.springframework.integration.jdbc.lock.DefaultLockRepository;
import org.springframework.integration.jdbc.lock.JdbcLockRegistry;
import org.springframework.integration.jdbc.lock.LockRepository;
Expand Down Expand Up @@ -127,7 +126,6 @@ private LockRegistry pgsqlLockRegistry() {
return new JdbcLockRegistry(pgsqlLockRepository());
}

@Bean
LockRepository pgsqlLockRepository() {
DefaultLockRepository lockRepository =
new DefaultLockRepository(dataSource, "test-instance");
Expand Down Expand Up @@ -177,14 +175,14 @@ protected Resource getResource(String path) throws Exception {
return store.get(path);
}

@Ignore
@Override
@Ignore("This behaviour is specific to the file based implementation")
public void theoryAlteringFileAltersResource(String path) throws Exception {
// disabled
}

@Ignore
@Override
@Ignore("This behaviour is specific to the file based implementation")
public void theoryAddingFileToDirectoryAddsResource(String path) throws Exception {
// disabled
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2203,7 +2203,8 @@ void testAddWMTSStore() {
* Revisit.
*/
@Test
@Disabled
@Disabled(
"This test cannot work, the catalog subsystem is not thread safe, that's why we have the configuration locks. Re-enable when the catalog subsystem is made thread safe.")
public void testGetLayerByIdWithConcurrentAdd() throws Exception {
addDataStore();
addNamespace();
Expand Down

0 comments on commit 14804e4

Please sign in to comment.