Class DirectMemoryTransportConnectorTest

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

public class DirectMemoryTransportConnectorTest extends Object
A transport connector that uses the memory for transport communication. Tests also StatusMessage and StatusMessageSerializer as well as Transport as a simple, working transport connector is available in this test.
Author:
Holger Eichelberger, SSE
  • Field Details

    • factoryUseDmcAsTransport

      private static boolean factoryUseDmcAsTransport
    • MY_DM_CONNECTOR

      private static final de.iip_ecosphere.platform.transport.connectors.impl.DirectMemoryTransferTransportConnector MY_DM_CONNECTOR
    • MY_FAKE_CONNECTOR

      private static final de.iip_ecosphere.platform.transport.connectors.TransportConnector MY_FAKE_CONNECTOR
  • Constructor Details

    • DirectMemoryTransportConnectorTest

      public DirectMemoryTransportConnectorTest()
  • Method Details

    • testMemoryConnector

      public void testMemoryConnector() throws IOException
      Tests the connector through explicitly setting/resetting the factory implementation.
      Throws:
      IOException - in case that connection/communication fails
    • testStatusMessage

      public void testStatusMessage() throws IOException
      Tests "sending"/"receiving" StatusMessage via a direct memory connector. Involves serialization.
      Throws:
      IOException - shall not occur
    • testGenericJsonTypeTranslator

      public void testGenericJsonTypeTranslator()
      Basic tests on GenericJsonToStringTranslator.
    • testResourceStatusMessage

      public void testResourceStatusMessage()
      Tests a singular resource status message (different creation).
    • testTransport

      public void testTransport() throws IOException
      Tests Transport.
      Throws:
      IOException - shall not occur