public class JsonUtilsTest extends Object
JsonUtils.| Modifier and Type | Class and Description |
|---|---|
static class |
JsonUtilsTest.Data
A data object for testing.
|
| Constructor and Description |
|---|
JsonUtilsTest() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
assertEscapeUnescape(String string)
Asserts that escaping and unescaping leads back to the input
string. |
void |
testEscapeUnescape()
Tests
JsonUtils.escape(String) and JsonUtils.unescape(String). |
void |
testOptionals()
Tests optional values.
|
void |
testServerAddress()
Tests the from/to JSON functions for
ServerAddress. |
void |
testToFromJson()
Tests the generic from/to JSON functions.
|
public void testOptionals()
public void testToFromJson()
public void testServerAddress()
ServerAddress.public void testEscapeUnescape()
JsonUtils.escape(String) and JsonUtils.unescape(String).private static void assertEscapeUnescape(String string)
string.string - the string to useCopyright © 2022. All rights reserved.