Skip to content

Commit

Permalink
minor test warning suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
giulong committed Dec 9, 2023
1 parent 3a6a342 commit 4b27e52
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class UtilLogLevelDeserializerTest {
private DeserializationContext deserializationContext;

@InjectMocks
private UtilLogLevelDeserializer UtilLogLevelDeserializer;
private UtilLogLevelDeserializer utilLogLevelDeserializer;

@Test
@DisplayName("getInstance should return the singleton")
Expand All @@ -42,6 +42,6 @@ public void deserialize() throws IOException {
String value = "INFO";
when(jsonParser.getValueAsString()).thenReturn(value);

assertEquals(INFO, UtilLogLevelDeserializer.deserialize(jsonParser, deserializationContext));
assertEquals(INFO, utilLogLevelDeserializer.deserialize(jsonParser, deserializationContext));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class FileUtilsTest {
@Test
@DisplayName("getInstance should return the singleton")
public void getInstance() {
//noinspection EqualsWithItself
assertSame(FileUtils.getInstance(), FileUtils.getInstance());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class FreeMarkerWrapperTest {
@Test
@DisplayName("getInstance should return the singleton")
public void getInstance() {
//noinspection EqualsWithItself
assertSame(FreeMarkerWrapper.getInstance(), FreeMarkerWrapper.getInstance());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class YamlUtilsTest {
@Test
@DisplayName("getInstance should return the singleton")
public void getInstance() {
//noinspection EqualsWithItself
assertSame(YamlUtils.getInstance(), YamlUtils.getInstance());
}

Expand Down

0 comments on commit 4b27e52

Please sign in to comment.