Package org.martinlaw.bo.contract

Examples of org.martinlaw.bo.contract.Contract.refresh()


      log.error(e);
    }
   
    getBoSvc().save(contract);
    // R
    contract.refresh();
    getTestUtils().testContractFields(contract);
    assertNotNull("considerations should not be null", contract.getConsiderations());
    assertEquals("default number of considerations differs", 2, contract.getConsiderations().size());
    assertNotNull("client object should not be null", contract.getClient());
    assertNotNull("client principal name should not be null", contract.getClientPrincipalName());
View Full Code Here


    assertNotNull("client object should not be null", contract.getClient());
    assertNotNull("client principal name should not be null", contract.getClientPrincipalName());
    // U
    String serviceOffered = "flat 3f2";
    contract.setServiceOffered(serviceOffered);
    contract.refresh();
    assertEquals("contract svc offered does not match after update", serviceOffered, contract.getServiceOffered());
    // D
    getBoSvc().delete(contract);
    assertNull("contract should not exist", getBoSvc().findBySinglePrimaryKey(Contract.class, contract.getId()));
    // the two default considerations should have been deleted
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.