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

Class AMCrewUnitTest

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


  • public class AMCrewUnitTest
    extends java.lang.Object
    Automated tests for AMCrew.
    • Constructor Detail

      • AMCrewUnitTest

        public AMCrewUnitTest()
    • Method Detail

      • testBasicAssetWithTool

        public void testBasicAssetWithTool()
      • testBasicAMCrew

        public void testBasicAMCrew()
      • testDeleteAMCrew

        public void testDeleteAMCrew()
                              throws java.rmi.RemoteException,
                                     MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • preppingCrew1

        public void preppingCrew1()
                           throws java.rmi.RemoteException,
                                  MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • preppingCrew2

        public void preppingCrew2()
                           throws java.rmi.RemoteException,
                                  MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • preppingCrew3

        public void preppingCrew3()
                           throws java.rmi.RemoteException,
                                  MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • preppingCrew4

        public void preppingCrew4()
                           throws java.rmi.RemoteException,
                                  MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • preppingCrew5

        public void preppingCrew5()
                           throws java.rmi.RemoteException,
                                  MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • addUnrestrictedAsPreviousEntry

        public void addUnrestrictedAsPreviousEntry()
                                            throws java.rmi.RemoteException,
                                                   MXException
        This is scenario A unit test case. Adds a new row via unrestricted row for same asset, but with a previous date. For the Test Case Scenarios see RTC#60878
        Throws:
        java.rmi.RemoteException
        MXException
      • checkPreviousDateErrorModification

        public void checkPreviousDateErrorModification()
                                                throws java.rmi.RemoteException,
                                                       MXException
        This is scenario B unit test case. Checks to make sure an error is thrown when trying to modify a record with an effective date in the past. For the Test Case Scenarios see RTC#60878
        Throws:
        java.rmi.RemoteException
        MXException
      • checkRecordExistModification

        public void checkRecordExistModification()
                                          throws java.rmi.RemoteException,
                                                 MXException
        This is scenario C unit test case. Checks to make sure an error is thrown when trying to a record with time that already exists. For the Test Case Scenarios see RTC#60878
        Throws:
        java.rmi.RemoteException
        MXException
      • modifyEffectiveDateToPast

        public void modifyEffectiveDateToPast()
                                       throws java.rmi.RemoteException,
                                              MXException
        This is scenario D unit test case. Modifies the effective date to a effective date in the past For the Test Case Scenarios see RTC#60878
        Throws:
        java.rmi.RemoteException
        MXException
      • modifyEndDateToFuture

        public void modifyEndDateToFuture()
                                   throws java.rmi.RemoteException,
                                          MXException
        This is scenario E unit test case. Modifies the end date to a future end date For the Test Case Scenarios see RTC#60878
        Throws:
        java.rmi.RemoteException
        MXException
      • modifyEndDateToNull

        public void modifyEndDateToNull()
                                 throws java.rmi.RemoteException,
                                        MXException
        This is scenario E unit test case. Modifies the end date to a future end date For the Test Case Scenarios see RTC#60878
        Throws:
        java.rmi.RemoteException
        MXException
      • modifyEffectiveDateWithNullEndDate

        public void modifyEffectiveDateWithNullEndDate()
                                                throws java.rmi.RemoteException,
                                                       MXException
        This is scenario F unit test case. Modifies the effectivedate to a day earlier For the Test Case Scenarios see RTC#60878
        Throws:
        java.rmi.RemoteException
        MXException
      • preppingForFollowingScenarios

        public void preppingForFollowingScenarios()
                                           throws java.rmi.RemoteException,
                                                  MXException
        This resets the dates as a prep between scenario F and scenario G For the Test Case Scenarios see RTC#60878
        Throws:
        java.rmi.RemoteException
        MXException
      • modifyEndDateFromOtherCrewAddToThisCrew

        public void modifyEndDateFromOtherCrewAddToThisCrew()
                                                     throws java.rmi.RemoteException,
                                                            MXException
        This is scenario G unit test case. Removes a tool from crew2 and adds it to crew 1. The change on crew2 will be that the enddate of the tool is changed to 6:59AM for today+4. For the Test Case Scenarios see RTC#60878
        Throws:
        java.rmi.RemoteException
        MXException
      • removeFromMiddleOfAssignment

        public void removeFromMiddleOfAssignment()
                                          throws java.rmi.RemoteException,
                                                 MXException
        This is scenario H unit test case. Assigns a tool to another shift from the middle of a current assignment. The tool will have 2 assignments in the old crew, and 1 in the new crew. For the Test Case Scenarios see RTC#60878
        Throws:
        java.rmi.RemoteException
        MXException
      • removeRecordsFromMultipleCrews

        public void removeRecordsFromMultipleCrews()
                                            throws java.rmi.RemoteException,
                                                   MXException
        This is scenario I unit test case. Assigns a tool to a crew during two existing assignments from other crews. The records will be deleted in both crews, and the end date of one assignment in one crew will also be modified. For the Test Case Scenarios see RTC#60878
        Throws:
        java.rmi.RemoteException
        MXException
      • changeEffectiveDate

        public void changeEffectiveDate()
                                 throws java.rmi.RemoteException,
                                        MXException
        This is scenario J unit test case. Modifies the existing record effective date to a date in the future without changing the tool sequence. For the Test Case Scenarios see RTC#60878
        Throws:
        java.rmi.RemoteException
        MXException
      • addNewUnrestricedRowWithoutConflicts

        public void addNewUnrestricedRowWithoutConflicts()
                                                  throws java.rmi.RemoteException,
                                                         MXException
        This is scenario K unit test case. Adds a new asset without conflicts. For the Test Case Scenarios see RTC#60878
        Throws:
        java.rmi.RemoteException
        MXException
      • modifyEffectiveDateExtendEndDate

        public void modifyEffectiveDateExtendEndDate()
                                              throws java.rmi.RemoteException,
                                                     MXException
        This is scenario L unit test case. Modifies the existing record effective date to a later date and extends another existing record in the crew. For the Test Case Scenarios see RTC#60878
        Throws:
        java.rmi.RemoteException
        MXException