public final class MXUnitTestUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static MXUnitTestUtil |
getInstance() |
MXServerRemote |
getMXServer() |
UserInfo |
getNewUserInfo(java.lang.String loginid)
Returns Maximo user information for user
loginid . |
void |
stopMXServer()
Shuts down the current server instance.
|
public static MXUnitTestUtil getInstance()
public MXServerRemote getMXServer() throws TestSetupException
MXServer
for the tests. If no instance was already running, starts a new server
and return it.TestSetupException
- is any setup error occurs.public UserInfo getNewUserInfo(java.lang.String loginid) throws MXException
loginid
.loginid
- person ID of the desired user.loginid
.MXException
- if any error occurs while getting the information for Maximo user to be used in the tests.public void stopMXServer() throws java.net.MalformedURLException, java.rmi.NotBoundException, java.rmi.RemoteException
java.rmi.NotBoundException
- if the current instance could not be located.java.net.MalformedURLException
- if the server URL is malformed.java.rmi.RemoteException
- if a network error occurs.MAXIMOStartupServlet
,
MAXIMOStartupServlet.destroy()