com.ibm.tivoli.maximo.amcrew.app.unittest

Class AMCrewUnitTestLibrary

  • java.lang.Object
    • com.ibm.tivoli.maximo.amcrew.app.unittest.AMCrewUnitTestLibrary


  • public class AMCrewUnitTestLibrary
    extends java.lang.Object
    Automated tests for Person Commodity.
    • Constructor Detail

      • AMCrewUnitTestLibrary

        public AMCrewUnitTestLibrary()
    • Method Detail

      • createAMCrew

        public static AMCrew createAMCrew()
      • createAMCrew

        public static AMCrew createAMCrew(java.lang.String amcrewName)
      • createAMCrew

        public static AMCrew createAMCrew(java.lang.String amcrewName,
                                          boolean evening)
        Creates a person with a generated person name with no other information.
        Parameters:
        personName -
        Returns:
      • addAssetToAMCrewViaNewRow

        public static AMCrew addAssetToAMCrewViaNewRow(AMCrew amcrew,
                                                       java.lang.String toolseq,
                                                       Asset asset,
                                                       java.util.Date effectiveDate,
                                                       java.util.Date enddate,
                                                       boolean addToolRequirement,
                                                       boolean commit)
                                                throws java.rmi.RemoteException,
                                                       MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • addAssetToAMCrewViaUnrestricted

        public static AMCrew addAssetToAMCrewViaUnrestricted(AMCrew amcrew,
                                                             java.lang.String toolseq,
                                                             Asset asset,
                                                             java.util.Date effectiveDate,
                                                             java.util.Date enddate)
                                                      throws java.rmi.RemoteException,
                                                             MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • addRequiredToolToAMCrew

        public static AMCrewToolSq addRequiredToolToAMCrew(AMCrew amcrew,
                                                           java.lang.String toolseq,
                                                           java.lang.String itemnum,
                                                           boolean commit)
                                                    throws java.rmi.RemoteException,
                                                           MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • createAsset

        public static Asset createAsset(java.lang.String assetName)
      • setTime

        public static java.util.Date setTime(java.util.Date date,
                                             int dayOffSet,
                                             int hour,
                                             int minute,
                                             int second,
                                             int millisecond)