public final class MXUnitTestUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
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()
protected void finalize() throws java.lang.Throwable
Ensure that MXServer is shut down when the helper instance finalizes.
finalize
in class java.lang.Object
java.lang.Throwable
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.psdi.servlet.MAXIMOStartupServlet
,
psdi.servlet.MAXIMOStartupServlet#destroy()