Examples of CourtCaseWitness


Examples of org.martinlaw.bo.courtcase.CourtCaseWitness

  /**
   * CRUD test for {@link CourtCaseWitness}
   */
  @Test
  public void testCaseWitness() {
    CourtCaseWitness person = new CourtCaseWitness();
    person.setCourtCaseId(1001l);
    testMartinlawPersonCRUD(CourtCaseWitness.class, "witness1", person);
  }
View Full Code Here

Examples of org.martinlaw.bo.courtcase.CourtCaseWitness

  /**
   * test that required db fields for {@link CourtCaseWitness} are checked
   */
  @Test(expected = DataIntegrityViolationException.class)
  public void testCaseWitnessNullableFields() {
    CourtCaseWitness caseClient = new CourtCaseWitness();
    getBoSvc().save(caseClient);
  }
View Full Code Here

Examples of org.martinlaw.bo.courtcase.CourtCaseWitness

    assertEquals("court ref differs", "c1", kase.getCourtReference());
      
      // witness
      List<CourtCaseWitness> witnesses = kase.getWitnesses();
      assertEquals(1, witnesses.size());
      CourtCaseWitness witness = witnesses.get(0);
      assertEquals("witness principal name differs", "witness1", witness.getPrincipalName());
      assertEquals("witness first name differs", "Witness",witness.getPerson().getFirstName());
     
      // type
      assertNotNull("case type should not be null", kase.getType());
      assertEquals("case type id differs", new Long(10001), kase.getType().getId());  
  }
View Full Code Here

Examples of org.martinlaw.bo.courtcase.CourtCaseWitness

  /**
   * add test witnesses to a matter
   * @param kase
   */
  public void addWitnesses(CourtCase kase) {
    CourtCaseWitness wit = new CourtCaseWitness();
    wit.setCourtCaseId(kase.getId());
    wit.setPrincipalName("Thomas Kaberi Gitau");
    kase.getWitnesses().add(wit);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.