public class PythonEnvironmentTest extends AbstractEnvironmentTest
| Constructor and Description |
|---|
PythonEnvironmentTest() |
| Modifier and Type | Method and Description |
|---|---|
static Process |
createPythonProcess(File dir,
String... args)
Creates and starts a Python process.
|
static Process |
createPythonProcess(String... args)
Creates and starts a Python process with home directory "./src/test/python".
|
private static void |
redirectIO(InputStream src,
PrintStream dest)
Redirects an input stream to another stream (in parallel).
|
void |
testPythonEnvironment()
Tests the Python implementation.
|
private void |
testPythonEnvironment(String protocol)
Tests the Python implementation.
|
void |
testPythonEnvironmentHttp()
Tests the Python implementation.
|
void |
testPythonEnvironmentHttps()
Tests the Python implementation.
|
testAas, testAasResultprivate static void redirectIO(InputStream src, PrintStream dest)
src - the source streamdest - the destination streampublic static Process createPythonProcess(File dir, String... args) throws IOException
dir - the home dir where to find the script/run it withinargs - the process arguments for the script including python arguments (first), script and script argumentsIOException - if process creation failspublic static Process createPythonProcess(String... args) throws IOException
args - the process arguments for the script including python arguments (first), script and script argumentsIOException - if process creation failspublic void testPythonEnvironment()
throws IOException,
ExecutionException
IOException - shall not occurExecutionException - shall not occurpublic void testPythonEnvironmentHttp()
throws IOException,
ExecutionException
IOException - shall not occurExecutionException - shall not occurpublic void testPythonEnvironmentHttps()
throws IOException,
ExecutionException
IOException - shall not occurExecutionException - shall not occurprivate void testPythonEnvironment(String protocol) throws IOException, ExecutionException
protocol - the AAS implementation protocol (see AasFactory.getProtocols()IOException - shall not occurExecutionException - shall not occurCopyright © 2022. All rights reserved.