public class DirectMemoryTransportConnectorTest extends Object
StatusMessage
and StatusMessageSerializer as well as Transport as a simple, working transport connector is
available in this test.| Modifier and Type | Class and Description |
|---|---|
private static class |
DirectMemoryTransportConnectorTest.FakeConnector
Does nothing, just for testing the creation.
|
static class |
DirectMemoryTransportConnectorTest.TestFactoryDescriptor
A descriptor for testing.
|
| Modifier and Type | Field and Description |
|---|---|
private static boolean |
factoryUseDmcAsTransport |
private static de.iip_ecosphere.platform.transport.connectors.impl.DirectMemoryTransferTransportConnector |
MY_DM_CONNECTOR |
private static de.iip_ecosphere.platform.transport.connectors.TransportConnector |
MY_FAKE_CONNECTOR |
| Constructor and Description |
|---|
DirectMemoryTransportConnectorTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testMemoryConnector()
Tests the connector through explicitly setting/resetting the factory
implementation.
|
void |
testResourceStatusMessage()
Tests a singular resource status message (different creation).
|
void |
testStatusMessage()
Tests "sending"/"receiving"
StatusMessage via a direct memory connector. |
void |
testTransport()
Tests
Transport. |
private static boolean factoryUseDmcAsTransport
private static final de.iip_ecosphere.platform.transport.connectors.impl.DirectMemoryTransferTransportConnector MY_DM_CONNECTOR
private static final de.iip_ecosphere.platform.transport.connectors.TransportConnector MY_FAKE_CONNECTOR
public void testMemoryConnector()
throws IOException
IOException - in case that connection/communication failspublic void testStatusMessage()
throws IOException
StatusMessage via a direct memory connector. Involves serialization.IOException - shall not occurpublic void testResourceStatusMessage()
public void testTransport()
throws IOException
Transport.IOException - shall not occurCopyright © 2022. All rights reserved.