Esempio n. 1
0
  @Test
  public void checkCClaimManagerUpdateClaimPreliminaryStatus2simple() {

    CClaimManager control = CClaimManager.getInstance();

    assertTrue(Cic.claim5.getPreliminaryStatus() == ClaimStatus.NOT_COMPLETED);
    Cic.claim5.setCheckInsuranceCompleted();

    assertTrue(Cic.claim5.getPreliminaryStatus() == ClaimStatus.NOT_COMPLETED);

    Cic.claim5.setPhoneGarageCompleted();

    control.updateClaimPreliminaryStatus(Cic.claim5);

    assertTrue(Cic.claim5.getPreliminaryStatus() == ClaimStatus.COMPLETED);
  }
Esempio n. 2
0
  @Test
  public void checkCClaimManagerUpdateClaimPreliminaryStatusComplex() throws PriorityException {

    CClaimManager control = CClaimManager.getInstance();

    assertTrue(Cic.claim4.getPreliminaryStatus() == ClaimStatus.NOT_COMPLETED);
    Cic.claim4.setCheckInsuranceCompleted();

    assertTrue(Cic.claim4.getPreliminaryStatus() == ClaimStatus.NOT_COMPLETED);

    Cic.claim4.setCheckHistoryCompleted();

    assertTrue(Cic.claim4.getPreliminaryStatus() == ClaimStatus.NOT_COMPLETED);

    Cic.claim4.setPhoneGarageCompleted();

    control.updateClaimPreliminaryStatus(Cic.claim4);

    assertTrue(Cic.claim4.getPreliminaryStatus() == ClaimStatus.COMPLETED);
  }