Examples of refreshNonUpdateableReferences()


Examples of org.martinlaw.bo.Matter.refreshNonUpdateableReferences()

    Matter matter = getTestMatter(localReference, statusText, name);
    // C
    getBoSvc().save(matter);
    // R
    matter = getBoSvc().findBySinglePrimaryKey(getDataObjectClass(), matter.getId());
    matter.refreshNonUpdateableReferences(); //without this, case status (object) is null
    assertEquals("case name differs", name, matter.getName());
    assertEquals("local reference differs", localReference, matter.getLocalReference());
    assertNotNull("clients should not be null", matter.getClients());
    assertEquals("number of clients expected differs", 2, matter.getClients().size());
   
View Full Code Here

Examples of org.martinlaw.bo.MatterWork.refreshNonUpdateableReferences()

         * a required field
         */
        branchNames.add(MartinlawConstants.RoutingBranches.ANNEX_TYPE_APPROVAL);
        log.error("work with doc number '" + context.getDocument().getDocumentId() "' is  null. testing?");
      } else {
        work.refreshNonUpdateableReferences();
        if (work.getAnnexType() != null && work.getAnnexType().getRequiresApproval()) {
          branchNames.add(MartinlawConstants.RoutingBranches.ANNEX_TYPE_APPROVAL);
        }
        if (work.getAnnexType() == null) {
          log.error("annexType for work with doc number '" + context.getDocument().getDocumentId() "' is null");
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.