refactor: Set permission modifiers for JacksonHandlerTest's classes and methods.

pull/1353/head
lucca 2 years ago
parent b18f94a283
commit 77531ccf3f

@ -33,7 +33,7 @@ import java.util.List;
/** /**
* test for {@link JacksonHandler} * test for {@link JacksonHandler}
*/ */
class JacksonHandlerTest { public class JacksonHandlerTest {
private final static JacksonHandler JACKSON_HANDLER = new JacksonHandler(); private final static JacksonHandler JACKSON_HANDLER = new JacksonHandler();
@ -56,7 +56,7 @@ class JacksonHandlerTest {
"]"; "]";
@Test @Test
void testToJSONString() { public void testToJSONString() {
// boolean to json // boolean to json
Assertions.assertEquals("true", JACKSON_HANDLER.toJSONString(true)); Assertions.assertEquals("true", JACKSON_HANDLER.toJSONString(true));
// double to json // double to json
@ -72,7 +72,7 @@ class JacksonHandlerTest {
} }
@Test @Test
void testParseObject() { public void testParseObject() {
// normal json to boolean // normal json to boolean
Assertions.assertEquals(true, JACKSON_HANDLER.parseObject("true", Boolean.class)); Assertions.assertEquals(true, JACKSON_HANDLER.parseObject("true", Boolean.class));
// normal json to double // normal json to double
@ -101,7 +101,7 @@ class JacksonHandlerTest {
} }
@Test @Test
void testParseArray() { public void testParseArray() {
// normal json to array // normal json to array
Assertions.assertEquals(EXPECTED_ENTITY_ARRAY, JSONUtil.parseArray(EXPECTED_ENTITY_ARRAY_JSON, Entity.class)); Assertions.assertEquals(EXPECTED_ENTITY_ARRAY, JSONUtil.parseArray(EXPECTED_ENTITY_ARRAY_JSON, Entity.class));
// null json // null json
@ -111,7 +111,7 @@ class JacksonHandlerTest {
} }
@Test @Test
void testIsJson() { public void testIsJson() {
// normal json // normal json
Assertions.assertTrue(JACKSON_HANDLER.isJson(EXPECTED_ENTITY_JSON)); Assertions.assertTrue(JACKSON_HANDLER.isJson(EXPECTED_ENTITY_JSON));
Assertions.assertTrue(JACKSON_HANDLER.isJson(EXPECTED_ENTITY_ARRAY_JSON)); Assertions.assertTrue(JACKSON_HANDLER.isJson(EXPECTED_ENTITY_ARRAY_JSON));

Loading…
Cancel
Save