Package org.martinlaw.bo

Examples of org.martinlaw.bo.MatterTxDocBase.logErrors()


    GlobalVariables.setUserSession(new UserSession("clerk1"));
    MatterTxDocBase txDoc = getTxDoc();
    txDoc.setMatterId(2001l);
    assertFalse("rule should return false", getRule().processCustomRouteDocumentBusinessRules(txDoc));
    assertTrue("there should be errors", GlobalVariables.getMessageMap().hasErrors());
    txDoc.logErrors();
    GlobalVariables.getMessageMap().clearErrorMessages();
   
    txDoc.setMatterId(1001l);
    assertTrue("rule should return true", getRule().processCustomRouteDocumentBusinessRules(txDoc));
    txDoc.logErrors();
View Full Code Here


    txDoc.logErrors();
    GlobalVariables.getMessageMap().clearErrorMessages();
   
    txDoc.setMatterId(1001l);
    assertTrue("rule should return true", getRule().processCustomRouteDocumentBusinessRules(txDoc));
    txDoc.logErrors();
    assertTrue("there should be no errors", GlobalVariables.getMessageMap().hasNoErrors());
  }
 
  /**
   * provide children classes with a way of specifying the rule - which is {@link MatterWorkRule} by default
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.