Class ConnectorServiceWrapperTest
java.lang.Object
test.de.iip_ecosphere.platform.services.environment.ConnectorServiceWrapperTest
Tests the
ConnectorServiceWrapper and MockingConnectorServiceWrapper.- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate de.iip_ecosphere.platform.connectors.types.TranslatingProtocolAdapter<Object, Object, Object, Object> Returns a connector adapter that literally does nothing, just for testing.private de.iip_ecosphere.platform.services.environment.YamlServiceReturns a YAML service for testing.voidTests theMockingConnectorServiceWrapper.private <O,I, CO, CI>
voidtestStopWrapper(de.iip_ecosphere.platform.services.environment.ConnectorServiceWrapper<O, I, CO, CI> wrapper) Generic stopping test for a wrapper instance.voidTests theConnectorServiceWrapper.private <O,I, CO, CI>
voidtestWrapper(de.iip_ecosphere.platform.services.environment.ConnectorServiceWrapper<O, I, CO, CI> wrapper, de.iip_ecosphere.platform.services.environment.YamlService yaml) Generic test for a wrapper instance based on the constitutingyamlinstance.
-
Constructor Details
-
ConnectorServiceWrapperTest
public ConnectorServiceWrapperTest()
-
-
Method Details
-
testWrapper
Tests theConnectorServiceWrapper.- Throws:
ExecutionException- shall not occur in successful tests
-
testMockingWrapper
Tests theMockingConnectorServiceWrapper.- Throws:
ExecutionException- shall not occur in successful tests
-
getYamlService
private de.iip_ecosphere.platform.services.environment.YamlService getYamlService()Returns a YAML service for testing.- Returns:
- the YAML instance
-
createConnectorAdapter
private de.iip_ecosphere.platform.connectors.types.TranslatingProtocolAdapter<Object,Object, createConnectorAdapter()Object, Object> Returns a connector adapter that literally does nothing, just for testing.- Returns:
- the connector adapter
-
testWrapper
private <O,I, void testWrapperCO, CI> (de.iip_ecosphere.platform.services.environment.ConnectorServiceWrapper<O, I, throws ExecutionExceptionCO, CI> wrapper, de.iip_ecosphere.platform.services.environment.YamlService yaml) Generic test for a wrapper instance based on the constitutingyamlinstance. The wrapper is started but not stopped.- Type Parameters:
O- the output type from the underlying machine/platformI- the input type to the underlying machine/platformCO- the output type of the connectorCI- the input type of the connector- Parameters:
wrapper- the wrapper instance to be testedyaml- the service deployment information- Throws:
ExecutionException- shall not occur in successful tests#- See Also:
-
testStopWrapper
private <O,I, void testStopWrapperCO, CI> (de.iip_ecosphere.platform.services.environment.ConnectorServiceWrapper<O, I, throws ExecutionExceptionCO, CI> wrapper) Generic stopping test for a wrapper instance.- Type Parameters:
O- the output type from the underlying machine/platformI- the input type to the underlying machine/platformCO- the output type of the connectorCI- the input type of the connector- Parameters:
wrapper- the wrapper instance to be tested- Throws:
ExecutionException- shall not occur in successful tests#
-