psdi.app.jobplan.unittest

Class BasicJobPlanTests

    • Constructor Detail

      • BasicJobPlanTests

        public BasicJobPlanTests()
    • Method Detail

      • inactivatePersonOnCancelledJobPlan

        public void inactivatePersonOnCancelledJobPlan()
                                                throws java.rmi.RemoteException,
                                                       MXException
        PMR 49491,800,624 - Can't deactivate person on cancelled jobplan.
        Throws:
        java.rmi.RemoteException
        MXException
      • testISSUE_12_12879

        public void testISSUE_12_12879()
                                throws java.rmi.RemoteException,
                                       MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • changeStatusOnListPageAffectsPreviousReviousStatus

        public void changeStatusOnListPageAffectsPreviousReviousStatus()
                                                                throws java.rmi.RemoteException,
                                                                       MXException
        From the list page if you select a cancelled jobplan and change status to active, it will affect the previous job plan's status putting it in an invalid state, even though it cannot move from cancel to active. 160373: JOB PLAN REVISION ISSUE IN 7506.
         Replication Steps:
        
        1. Go to Job Plans application.
        
        2. Create a new jobplan.
        
        3. Change its status to ACTIVE.
        
        4. Revise the job plan.
        
        5. Change the status of the new revision to CANCEL.
        
        6. Now there are two revisions of the job plan - revision 0 is
        active
        and
        revision 1 is cancelled.
        
        7. Open revision 1 on the "Job Plan" tab and try to change its
        status to
        ACTIVE. It is not possible => correct.
        
        8. Select revision 1 on the "List" tab and try to change its
        status to
        ACTIVE. It is not possible, but the status of revision 0 is
        changed to
        REVISED => wrong
        
        The job plan is now effectively inactive because both revisions
        are in
        the history and cannot be modified anymore.
         
        Throws:
        java.rmi.RemoteException
        MXException
      • changeStatusOnListPageAffectsPreviousReviousStatusWhenAllAreSelectedForTheSameJobPlan

        public void changeStatusOnListPageAffectsPreviousReviousStatusWhenAllAreSelectedForTheSameJobPlan()
                                                                                                   throws java.rmi.RemoteException,
                                                                                                          MXException
        From the list page if you select a cancelled jobplan and change status to active, it will affect the previous job plan's status putting it in an invalid state, even though it cannot move from cancel to active. THis is same as the previous test, except this use case actually selects both rev 0 and rev 1 from the list tab 160373: JOB PLAN REVISION ISSUE IN 7506.
         Replication Steps:
        
        1. Go to Job Plans application.
        
        2. Create a new jobplan.
        
        3. Change its status to ACTIVE.
        
        4. Revise the job plan.
        
        5. Change the status of the new revision to CANCEL.
        
        6. Now there are two revisions of the job plan - revision 0 is
        active
        and
        revision 1 is cancelled.
        
        7. Open revision 1 on the "Job Plan" tab and try to change its
        status to
        ACTIVE. It is not possible => correct.
        
        8. Select revision 1 AND revision 0 on the "List" tab and try to change its
        status to
        ACTIVE. It is not possible, but the status of revision 0 is
        changed to
        REVISED => wrong
        
        The job plan is now effectively inactive because both revisions
        are in
        the history and cannot be modified anymore.
         
        Throws:
        java.rmi.RemoteException
        MXException