Qorus Integration Engine®  4.0.3.p2_git
com.qoretechnologies.qorus.test.QorusServiceTest Class Reference

base class for testing Qorus services More...

Inheritance diagram for com.qoretechnologies.qorus.test.QorusServiceTest:
com.qoretechnologies.qorus.test.QorusInterfaceTest org::qore::lang::qunit::Test org::qore::jni::QoreObjectWrapper

Public Member Methods

 QorusServiceTest (String name, String svc_type) throws Throwable
 creates the object from the arguments; the version number is not given because it's only possible to test the latest version of the service in any case More...
 
 QorusServiceTest (String name) throws Throwable
 creates the object from the arguments; the version number is not given because it's only possible to test the latest version of the service in any case More...
 
String getLogFileName () throws Throwable
 returns the log file name for the current object
 
boolean canRun () throws Throwable
 checks if the interface can run
 
- Public Member Methods inherited from com.qoretechnologies.qorus.test.QorusInterfaceTest
 QorusInterfaceTest (QoreObject obj) throws Throwable
 creates the object based on the arguments
 
void globalSetUp () throws Throwable
 checks that the interface exists and executes a StarLog action
 
Object exec (Action data) throws Throwable
 executes the Action by calling its run() method and returns the object of Action (that allows to retrieve some particular information about the action later in the test script)
 
String getQorusInstanceName () throws Throwable
 tests whether some Qorus instance is running and returns its name More...
 
String getInstanceName () throws Throwable
 returns the Qorus instance name More...
 
String getDescription () throws Throwable
 returns a string describing the current interface being tested
 
ZonedDateTime getTimestamp () throws Throwable
 returns the test start timestamp
 
HashMap getInterfaceInfo () throws Throwable
 returns information about the interface from the REST API or NOTHING if the interface doesn't exist or the system is not responding on the HTTP interface
 
boolean isInterfaceLoaded () throws Throwable
 tests whether the current interface is loaded in the current Qorus instance More...
 
boolean isInterfaceRunning () throws Throwable
 tests whether the current interface is running in the current Qorus instance More...
 
HashMap getFunctionInfo (String name) throws Throwable
 returns the configuration (including source) for the named library function
 
HashMap getConstantInfo (String name) throws Throwable
 returns the configuration (including source) for the named library constant
 
HashMap getClassInfo (String name) throws Throwable
 returns the configuration (including source) for the named library class
 
void disable () throws Throwable
 disables the current interface
 
void enable () throws Throwable
 enables the current interface
 
abstract String getLogFileName () throws Throwable
 returns the log file name for the current object
 
abstract boolean canRun () throws Throwable
 checks if the interface can run
 

Additional Inherited Members

- Private Member Methods inherited from com.qoretechnologies.qorus.test.QorusInterfaceTest
void setUserPassword () throws Throwable
 reimplement in child classes to allow the REST username & password for the Qorus server connection to be set before trying to communicate with the server More...
 

Detailed Description

base class for testing Qorus services

Constructor & Destructor Documentation

◆ QorusServiceTest() [1/2]

com.qoretechnologies.qorus.test.QorusServiceTest.QorusServiceTest ( String  name,
String  svc_type 
) throws Throwable
inline

creates the object from the arguments; the version number is not given because it's only possible to test the latest version of the service in any case

Parameters
namethe service name
svc_typethe service type:
  • "user": the default
  • "system": only for testing system services

◆ QorusServiceTest() [2/2]

com.qoretechnologies.qorus.test.QorusServiceTest.QorusServiceTest ( String  name) throws Throwable
inline

creates the object from the arguments; the version number is not given because it's only possible to test the latest version of the service in any case

Parameters
namethe service name

The documentation for this class was generated from the following file: