Class PythonProcessServiceTest
java.lang.Object
test.de.iip_ecosphere.platform.support.TestWithPlugin
test.de.iip_ecosphere.platform.support.aas.TestWithPlugin
test.de.iip_ecosphere.platform.transport.TestWithQpid
test.de.iip_ecosphere.platform.services.environment.PythonProcessServiceTest
public class PythonProcessServiceTest
extends test.de.iip_ecosphere.platform.transport.TestWithQpid
Tests the generic Python process service
AbstractPythonProcessService.- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classExtension of python async process service to count the number of processed items for asserting. -
Field Summary
FieldsFields inherited from class test.de.iip_ecosphere.platform.transport.TestWithQpid
qpidFields inherited from class test.de.iip_ecosphere.platform.support.TestWithPlugin
PROP_AAS_PLUGIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomposeCmdLineArguments(String serviceId) Composes the basic command line arguments for this test.composeCmdLineArguments(String serviceId, String mode, int port) Composes the basic command line arguments for this test.voidTests an client-server communication withPythonAsyncProcessService.voidTests the process-based service classes.private voidtestService(de.iip_ecosphere.platform.services.environment.PythonAsyncProcessService service) Tests the Python service environment integration.voidTests the process-based service classes.voidTests the Websocket-based service classes.Methods inherited from class test.de.iip_ecosphere.platform.transport.TestWithQpid
addPlugin, fromPlugin, stopQpidMethods inherited from class test.de.iip_ecosphere.platform.support.aas.TestWithPlugin
setAasPluginId, setup, setupAASPluginsMethods inherited from class test.de.iip_ecosphere.platform.support.TestWithPlugin
addPluginLocation, addPluginLocation, addPluginLocation, addRunAfterLoading, clear, enableLocalPlugins, loadPlugins, setInstallDir
-
Field Details
-
stringParam
-
-
Constructor Details
-
PythonProcessServiceTest
public PythonProcessServiceTest()
-
-
Method Details
-
composeCmdLineArguments
Composes the basic command line arguments for this test. We assume that the service modules are in the "src/test/python" folder and we set the home folder of the Python process to "src/main/python" where the service environment is located. This may differ in a real integration, e.g., both parts in one sub-folder of temp.- Parameters:
serviceId- the service id to use- Returns:
- the basic command line arguments
-
composeCmdLineArguments
Composes the basic command line arguments for this test. We assume that the service modules are in the "src/test/python" folder and we set the home folder of the Python process to "src/main/python" where the service environment is located. This may differ in a real integration, e.g., both parts in one sub-folder of temp.- Parameters:
serviceId- the service id to usemode- the service environment mode, e.g., "console" or "REST"port- the port for "REST", ignored if zero or negative- Returns:
- the basic command line arguments
-
testAsyncProcessService
Tests the process-based service classes.- Throws:
ExecutionException- shall not occurIOException- shall not occur
-
testWsProcessService
Tests the Websocket-based service classes.- Throws:
ExecutionException- shall not occurIOException- shall not occur
-
testService
private void testService(de.iip_ecosphere.platform.services.environment.PythonAsyncProcessService service) throws ExecutionException, IOException Tests the Python service environment integration.- Parameters:
service- the service instance to test- Throws:
ExecutionException- shall not occurIOException- shall not occur
-
testAsyncClientServer
Tests an client-server communication withPythonAsyncProcessService.- Throws:
IOException- shall not occurExecutionException- shall not occur
-
testSyncProcessService
Tests the process-based service classes.- Throws:
ExecutionException- shall not occurIOException- shall not occur
-