public class AbstractTransportConnectorTest extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
AbstractTransportConnectorTest.Callback
Implements a simple reception callback.
|
static interface |
AbstractTransportConnectorTest.TransportParameterConfigurer
Allows to configure the transport parameters.
|
| Constructor and Description |
|---|
AbstractTransportConnectorTest() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
assertProduct(Product expected,
AbstractTransportConnectorTest.Callback received)
Asserts that
expected and the received value in callback
contain the same values. |
static void |
doTest(de.iip_ecosphere.platform.support.ServerAddress addr,
Class<? extends de.iip_ecosphere.platform.transport.serialization.Serializer<Product>> serializerType)
Implements the test using the
TransportFactory. |
static void |
doTest(de.iip_ecosphere.platform.support.ServerAddress addr,
Class<? extends de.iip_ecosphere.platform.transport.serialization.Serializer<Product>> serializerType,
AbstractTransportConnectorTest.TransportParameterConfigurer configurer)
Implements the test using the
TransportFactory. |
void |
testApplyAuthenticationKey()
Tests
AbstractTransportConnector.applyAuthenticationKey(String,
de.iip_ecosphere.platform.transport.connectors.impl.AbstractTransportConnector.AuthenticationConsumer). |
void |
testGetKeystorePassword()
Tests
AbstractTransportConnector.getKeystorePassword(de.iip_ecosphere.platform.transport.connectors.TransportParameter). |
public static void doTest(de.iip_ecosphere.platform.support.ServerAddress addr,
Class<? extends de.iip_ecosphere.platform.transport.serialization.Serializer<Product>> serializerType)
throws IOException
TransportFactory.addr - the server addressserializerType - the serializer type to useIOException - in case that connection/communication failspublic static void doTest(de.iip_ecosphere.platform.support.ServerAddress addr,
Class<? extends de.iip_ecosphere.platform.transport.serialization.Serializer<Product>> serializerType,
AbstractTransportConnectorTest.TransportParameterConfigurer configurer)
throws IOException
TransportFactory.addr - the server addressserializerType - the serializer type to useconfigurer - the optional transport parameter configurer (may be null)IOException - in case that connection/communication failsprivate static void assertProduct(Product expected, AbstractTransportConnectorTest.Callback received)
expected and the received value in callback
contain the same values.expected - expected valuereceived - received valuepublic void testApplyAuthenticationKey()
AbstractTransportConnector.applyAuthenticationKey(String,
de.iip_ecosphere.platform.transport.connectors.impl.AbstractTransportConnector.AuthenticationConsumer).public void testGetKeystorePassword()
AbstractTransportConnector.getKeystorePassword(de.iip_ecosphere.platform.transport.connectors.TransportParameter).Copyright © 2022. All rights reserved.