public class WOLibrary
extends java.lang.Object
| Constructor and Description | 
|---|
| WOLibrary() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | changeStatusToAppr(WO wo)Takes a workorder and attempts to change the status to approve. | 
| static void | changeStatusToAppr(WO wo,
                  java.lang.String endStatus)Takes a workorder and attempts to change the status to approve | 
| static void | changeStatusToWappr(WO wo)Takes a workorder and attempts to change the status to waiting approval. | 
| static void | changeStatusToWappr(WO wo,
                   java.lang.String endStatus)Takes a workorder and attempts to change the status to waiting approval | 
| static WO | createWO()Use this method to create a WO that will only be used in one unit test. | 
| static WO | createWO(java.lang.String name)Use this method to create a workorder that will spawn over multiple unittest. | 
public static WO createWO()
public static WO createWO(java.lang.String name)
name - The name you want to give the mbopublic static void changeStatusToAppr(WO wo) throws java.rmi.RemoteException, MXException
wo - The WO to approvejava.rmi.RemoteExceptionMXExceptionpublic static void changeStatusToAppr(WO wo, java.lang.String endStatus) throws java.rmi.RemoteException, MXException
wo - The WO to approveendStatus - The expected end statusjava.rmi.RemoteExceptionMXExceptionpublic static void changeStatusToWappr(WO wo) throws java.rmi.RemoteException, MXException
wo - The WO to approvejava.rmi.RemoteExceptionMXExceptionpublic static void changeStatusToWappr(WO wo, java.lang.String endStatus) throws java.rmi.RemoteException, MXException
wo - The WO to approveendStatus - The expected end status, if differentjava.rmi.RemoteExceptionMXException