Package org.martinlaw.bo.contract

Examples of org.martinlaw.bo.contract.ContractParty


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


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

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

    contract.setServiceOffered("flat 1f2");
    contract.setStatusId(10033l);
    contract.setClientPrincipalName("Alice Wanjiru");
    // parties
    List<ContractParty> parties = new ArrayList<ContractParty>();
    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"));
View Full Code Here

TOP

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

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.