Class DirectMemoryTransportConnectorTest
java.lang.Object
test.de.iip_ecosphere.platform.transport.DirectMemoryTransportConnectorTest
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classDoes nothing, just for testing the creation.static classA descriptor for testing. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static booleanprivate static final de.iip_ecosphere.platform.transport.connectors.impl.DirectMemoryTransferTransportConnectorprivate static final de.iip_ecosphere.platform.transport.connectors.TransportConnector -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidBasic tests onGenericJsonToStringTranslator.voidTests the connector through explicitly setting/resetting the factory implementation.voidTests a singular resource status message (different creation).voidTests "sending"/"receiving"StatusMessagevia a direct memory connector.voidTestsTransport.
-
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
Tests the connector through explicitly setting/resetting the factory implementation.- Throws:
IOException- in case that connection/communication fails
-
testStatusMessage
Tests "sending"/"receiving"StatusMessagevia a direct memory connector. Involves serialization.- Throws:
IOException- shall not occur
-
testGenericJsonTypeTranslator
public void testGenericJsonTypeTranslator()Basic tests onGenericJsonToStringTranslator. -
testResourceStatusMessage
public void testResourceStatusMessage()Tests a singular resource status message (different creation). -
testTransport
TestsTransport.- Throws:
IOException- shall not occur
-