public class UnitTestService extends AppService implements UnitTestServiceRemote
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UNITTEST_LOGGER |
static MXLogger |
UTLOGGER |
currentState, dbManager, INIT, liveObjCount, load, LOAD, mxServer, name, RUN, running, stateCmdList, stateList, STOP, url
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Constructor and Description |
---|
UnitTestService()
Construct the service
|
UnitTestService(MXServer mxServer) |
Modifier and Type | Method and Description |
---|---|
protected UnitTestResult |
executeTestUnit(java.lang.String suiteId,
java.lang.String testUnitId,
java.util.Map unitTestMap,
java.util.Map execMap,
java.util.Map setupInvalidMap,
TestSuiteResult suiteResult,
TestRealTimeClientRemote trtc) |
byte[] |
getTemplateData(java.lang.String resName,
boolean mboType,
java.lang.String id) |
void |
init()
Initialize the Application Service.
|
boolean |
isMT() |
protected boolean |
isNull(java.lang.String value) |
static java.util.Map |
loadLibrary(java.lang.String resource) |
protected void |
prepareRunList(org.jdom2.Element rootElem,
java.util.List unitTestIdList,
java.util.Map unitTestMap,
java.util.Map setupInvalidMap,
TestDataSource testDataSource,
TestRealTimeClientRemote trtc) |
TestSuiteResult |
test(byte[] testScript) |
TestSuiteResult |
test(java.lang.String scriptName) |
void |
testRealTime(byte[] testScript,
TestRealTimeClientRemote trtc) |
void |
testRealTime(java.lang.String scriptName,
TestRealTimeClientRemote trtc) |
checkSecurity, configure, destroy, freeDBConnection, freeMboSet, getCriteria, getCriteriaList, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setName, setProxy, setRunning, setURL, verifyUser, verifyUser
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUser
isAppService, isSingletonService, restart
public static final java.lang.String UNITTEST_LOGGER
public static final MXLogger UTLOGGER
public UnitTestService() throws java.rmi.RemoteException
java.rmi.RemoteException
public UnitTestService(MXServer mxServer) throws java.rmi.RemoteException
mxServer
- The "Server Environment" this Service is being created in.java.rmi.RemoteException
public void init()
AppService
init
in interface Service
init
in class AppService
Service
public byte[] getTemplateData(java.lang.String resName, boolean mboType, java.lang.String id) throws MXException
getTemplateData
in interface UnitTestServiceRemote
MXException
public static java.util.Map loadLibrary(java.lang.String resource)
protected void prepareRunList(org.jdom2.Element rootElem, java.util.List unitTestIdList, java.util.Map unitTestMap, java.util.Map setupInvalidMap, TestDataSource testDataSource, TestRealTimeClientRemote trtc) throws TestSetupException
rootElem
- the root element for the scriptunitTestIdList
- the empty list of test ids which needs to be rununitTestMap
- the empty mapdatasrcMap
- TestSetupException
protected boolean isNull(java.lang.String value)
public boolean isMT()
isMT
in interface UnitTestServiceRemote
public TestSuiteResult test(byte[] testScript) throws TestSetupException, java.rmi.RemoteException
test
in interface UnitTestServiceRemote
TestSetupException
java.rmi.RemoteException
protected UnitTestResult executeTestUnit(java.lang.String suiteId, java.lang.String testUnitId, java.util.Map unitTestMap, java.util.Map execMap, java.util.Map setupInvalidMap, TestSuiteResult suiteResult, TestRealTimeClientRemote trtc)
public TestSuiteResult test(java.lang.String scriptName) throws TestSetupException, java.rmi.RemoteException
test
in interface UnitTestServiceRemote
TestSetupException
java.rmi.RemoteException
public void testRealTime(byte[] testScript, TestRealTimeClientRemote trtc) throws TestSetupException, java.rmi.RemoteException
testRealTime
in interface UnitTestServiceRemote
TestSetupException
java.rmi.RemoteException
public void testRealTime(java.lang.String scriptName, TestRealTimeClientRemote trtc) throws TestSetupException, java.rmi.RemoteException
testRealTime
in interface UnitTestServiceRemote
TestSetupException
java.rmi.RemoteException