Class TestWithQpid
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
public class TestWithQpid
extends test.de.iip_ecosphere.platform.support.aas.TestWithPlugin
Adds QPID as plugin into the tests.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsFields inherited from class test.de.iip_ecosphere.platform.support.TestWithPlugin
PROP_AAS_PLUGIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAdds the Qpid plugin (if inheriting is not possible).static de.iip_ecosphere.platform.support.ServerfromPlugin(de.iip_ecosphere.platform.support.ServerAddress broker) Creates a qpid instance via plugin.de.iip_ecosphere.platform.support.ServersetAndStartQpid(de.iip_ecosphere.platform.support.Server instance) Sets and starts the instance, ensuring that if there is already an instance that it is stopped.de.iip_ecosphere.platform.support.ServersetQpid(de.iip_ecosphere.platform.support.Server instance) Sets the instance, ensuring that if there is already an instance that it is stopped.voidstopQpid()Shuts down qpid.Methods 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, loadPlugins, setInstallDir
-
Field Details
-
qpid
private de.iip_ecosphere.platform.support.Server qpid
-
-
Constructor Details
-
TestWithQpid
public TestWithQpid()
-
-
Method Details
-
addPlugin
public static void addPlugin()Adds the Qpid plugin (if inheriting is not possible). -
stopQpid
public void stopQpid()Shuts down qpid. -
setQpid
public de.iip_ecosphere.platform.support.Server setQpid(de.iip_ecosphere.platform.support.Server instance) Sets the instance, ensuring that if there is already an instance that it is stopped.- Parameters:
instance- the new instance- Returns:
instance
-
setAndStartQpid
public de.iip_ecosphere.platform.support.Server setAndStartQpid(de.iip_ecosphere.platform.support.Server instance) Sets and starts the instance, ensuring that if there is already an instance that it is stopped.- Parameters:
instance- the new instance- Returns:
instance
-
fromPlugin
public static de.iip_ecosphere.platform.support.Server fromPlugin(de.iip_ecosphere.platform.support.ServerAddress broker) Creates a qpid instance via plugin.- Parameters:
broker- the server address- Returns:
- the instance
-