Class TypeTranslatorsTest

java.lang.Object
test.de.iip_ecosphere.platform.transport.TypeTranslatorsTest

public class TypeTranslatorsTest extends Object
Tests the default type translators in TypeTranslators. We focus in particular on types that could be useful for the code generation, e.g., service parameter values.
Author:
Holger Eichelberger, SSE
  • Constructor Details

    • TypeTranslatorsTest

      public TypeTranslatorsTest()
  • Method Details

    • testString

      public void testString() throws IOException
      Tests TypeTranslators.STRING.
      Throws:
      IOException - shall not occur
    • testInteger

      public void testInteger() throws IOException
      Tests TypeTranslators.INTEGER.
      Throws:
      IOException - shall not occur
    • testJsonString

      public void testJsonString() throws IOException
      Tests TypeTranslators.JSON_STRING.
      Throws:
      IOException - shall not occur
    • testLong

      public void testLong() throws IOException
      Tests TypeTranslators.LONG.
      Throws:
      IOException - shall not occur
    • testBoolean

      public void testBoolean() throws IOException
      Tests TypeTranslators.BOOLEAN.
      Throws:
      IOException - shall not occur
    • testDouble

      public void testDouble() throws IOException
      Tests TypeTranslators.LONG.
      Throws:
      IOException - shall not occur
    • testByteArrayBase64

      public void testByteArrayBase64() throws IOException
      Tests TypeTranslators.BYTEARRAY_TO_BASE64 and TypeTranslators.BASE64_TO_BYTEARRAY.
      Throws:
      IOException - shall not occur
    • testCreateTypeTranslator

      public void testCreateTypeTranslator()
      Tests TypeTranslators.createTypeTranslator(ClassLoader, String).
    • testCreateSerializer

      public void testCreateSerializer()
      Tests TypeTranslators.createSerializer(ClassLoader, String).