Skip to content

Commit

Permalink
refactor(sonar): Default package visibility of junit5 tests java:S5786
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelsJP committed Nov 26, 2024
1 parent 3acc8fc commit 39fe58c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

public class DataAccessEnumTest {
class DataAccessEnumTest {

@Test
public void testEnum() {
void testEnum() {
DataAccessEnum[] dataAccessEnums = DataAccessEnum.values();
assertEquals(3, dataAccessEnums.length);
assertEquals(DataAccessEnum.RAM_STORE, dataAccessEnums[0]);
Expand All @@ -23,14 +23,14 @@ void testEnumValueOf() {
}

@Test
public void testGetStore() {
void testGetStore() {
assertEquals("RAM_STORE", DataAccessEnum.RAM_STORE.getStore());
assertEquals("MMAP", DataAccessEnum.MMAP.getStore());
assertEquals("MMAP_RO", DataAccessEnum.MMAP_RO.getStore());
}

@Test
public void testToString() {
void testToString() {
assertEquals("RAM_STORE", DataAccessEnum.RAM_STORE.toString());
assertEquals("MMAP", DataAccessEnum.MMAP.toString());
assertEquals("MMAP_RO", DataAccessEnum.MMAP_RO.toString());
Expand Down

0 comments on commit 39fe58c

Please sign in to comment.