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

    Claim claim;

    CClaimManager c = CClaimManager.getInstance();
    Integer id = Cic.claim0.getId();
    c.removeClaim(Cic.claim0);
    assertFalse(c.search(id.toString()).contains(Cic.claim0));
  }
Esempio n. 2
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. 3
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);
  }
Esempio n. 4
0
  @Test
  public void checkCClaimManagerGetUnclassifiedClaims() throws AuthenticationException {

    ArrayList<Claim> unclassifiedClaims = CClaimManager.getInstance().getUnclassifiedClaims();
    assertFalse(unclassifiedClaims.isEmpty());
  }
Esempio n. 5
0
 @Test
 public void checkCClaimManagerGetInstance() {
   CClaimManager control = CClaimManager.getInstance();
   assertTrue(control != null);
 }