java.lang.Object
test.de.oktoflow.platform.support.json.jackson.JsonTest

public class JsonTest extends Object
Tests Json.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • JsonTest

      public JsonTest()
  • Method Details

    • assertData

      private void assertData(JsonTest.Data value, JsonTest.Data expected)
      Asserts data instances.
      Parameters:
      value - the value to test
      expected - the expected value
    • testJson

      public void testJson() throws IOException
      Tests basic JSON functions.
      Throws:
      IOException - shall not occur
    • testJsonObject

      public void testJsonObject() throws IOException
      Tests basic JsonObject functions.
      Throws:
      IOException - shall not occur
    • testJsonIter

      public void testJsonIter() throws IOException
      Tests JsoniterAny.
      Throws:
      IOException - shall not occur
    • testJsonIterAsMap

      public void testJsonIterAsMap() throws IOException
      Tests JsoniterAny.asMap().
      Throws:
      IOException - shall not occur
    • testHandleIipDataClasses

      public void testHandleIipDataClasses()
      Tests Json.handleIipDataClasses().
    • testExceptFields

      public void testExceptFields() throws IOException
      Tests Json.exceptFields(String...).
      Throws:
      IOException - shall not occur
    • testGenerator

      public void testGenerator() throws IOException
      Tests the generator.
      Throws:
      IOException - shall not occur
    • testSerializerMigration

      public void testSerializerMigration() throws IOException
      From configuration's Routing test, test two classes (old, before/new, after migration to plugins) in oktoflow's serialization style.
      Throws:
      IOException
    • testIgnoreUnkown

      public void testIgnoreUnkown() throws IOException
      Tests IgnoreProperties and Json.failOnUnknownProperties(boolean).
      Throws:
      IOException - shall not occur
    • testExcludeFilter

      public void testExcludeFilter() throws IOException
      Tests explicitly filtering for fields using Json.configureExceptFieldsFilter(String, String...).
      Throws:
      IOException - shall not occur
    • testEnums

      public void testEnums() throws IOException
      Tests declaring, serializing and deserializing enums.
      Throws:
      IOException - shall not occur