Package org.martinlaw.bo.contract

Examples of org.martinlaw.bo.contract.ContractSignatory


  @Test(expected = DataIntegrityViolationException.class)
  /**
   * tests that non nullable fields are checked
   */
  public void testContractSignatoryNullableFields() {
    ContractSignatory contractSignatory = new ContractSignatory();
    getBoSvc().save(contractSignatory);
  }
View Full Code Here


  /**
   * tests retrieving from date inserted via sql
   */
  public void testContractSignatoryRetrieve() {
    // retrieve object populated via sql script
    ContractSignatory contractSignatory = getBoSvc().findBySinglePrimaryKey(
        ContractSignatory.class, 1001l);
    assertNotNull(contractSignatory);
    assertEquals("en", contractSignatory.getPrincipalName());
  }
View Full Code Here

  /**
   * test CRUD for {@link ContractSignatory}
   */
  public void testContractSignatoryCRUD() {
    // C
    ContractSignatory contractSignatory = new ContractSignatory();
    String name = "am";
    contractSignatory.setPrincipalName(name);
    contractSignatory.setContractId(1005l);
    getBoSvc().save(contractSignatory);
    // R
    contractSignatory.refresh();
    assertEquals("principal name does not match", name, contractSignatory.getPrincipalName());
    // U
    name = "zn";
    contractSignatory.setPrincipalName(name);
    contractSignatory.refresh();
    assertEquals("principal name does not match", name, contractSignatory.getPrincipalName());
    // D
    getBoSvc().delete(contractSignatory);
    assertNull(getBoSvc().findBySinglePrimaryKey(ContractSignatory.class,
        contractSignatory.getId()));
  }
View Full Code Here

    parties.add(new ContractParty("Charity Mumbi"));
    parties.add(new ContractParty("Kevin Ngatia"));
    contract.setParties(parties);
    // signatories
    List<ContractSignatory> signs = new ArrayList<ContractSignatory>();
    signs.add(new ContractSignatory("Myles Mathenge"));
    signs.add(new ContractSignatory("Zeph Njogu"));
    contract.setSignatories(signs);
    // consideration - use default considerations
    /*try {
      contract.getConsiderations().add((Consideration) getTestConsideration(Consideration.class));
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.martinlaw.bo.contract.ContractSignatory

Copyright © 2018 www.massapicom. 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.