Class JsonTest
java.lang.Object
test.de.oktoflow.platform.support.json.jackson.JsonTest
Tests
Json.- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA test data class.static classA data class for enum testing.static enumAm enum for enum testing.(package private) static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertData(JsonTest.Data value, JsonTest.Data expected) Asserts data instances.voidTests declaring, serializing and deserializing enums.voidTestsJson.exceptFields(String...).voidTests explicitly filtering for fields usingJson.configureExceptFieldsFilter(String, String...).voidTests the generator.voidTestsJson.handleIipDataClasses().voidTestsIgnorePropertiesandJson.failOnUnknownProperties(boolean).voidtestJson()Tests basic JSON functions.voidTestsJsoniterAny.voidTestsJsoniterAny.asMap().voidTests basicJsonObjectfunctions.voidFrom configuration's Routing test, test two classes (old, before/new, after migration to plugins) in oktoflow's serialization style.
-
Field Details
-
FILTER_ID_DATA
- See Also:
-
-
Constructor Details
-
JsonTest
public JsonTest()
-
-
Method Details
-
assertData
Asserts data instances.- Parameters:
value- the value to testexpected- the expected value
-
testJson
Tests basic JSON functions.- Throws:
IOException- shall not occur
-
testJsonObject
Tests basicJsonObjectfunctions.- Throws:
IOException- shall not occur
-
testJsonIter
TestsJsoniterAny.- Throws:
IOException- shall not occur
-
testJsonIterAsMap
TestsJsoniterAny.asMap().- Throws:
IOException- shall not occur
-
testHandleIipDataClasses
public void testHandleIipDataClasses()TestsJson.handleIipDataClasses(). -
testExceptFields
TestsJson.exceptFields(String...).- Throws:
IOException- shall not occur
-
testGenerator
Tests the generator.- Throws:
IOException- shall not occur
-
testSerializerMigration
From configuration's Routing test, test two classes (old, before/new, after migration to plugins) in oktoflow's serialization style.- Throws:
IOException
-
testIgnoreUnkown
TestsIgnorePropertiesandJson.failOnUnknownProperties(boolean).- Throws:
IOException- shall not occur
-
testExcludeFilter
Tests explicitly filtering for fields usingJson.configureExceptFieldsFilter(String, String...).- Throws:
IOException- shall not occur
-
testEnums
Tests declaring, serializing and deserializing enums.- Throws:
IOException- shall not occur
-