Package org.kuali.rice.krad

Examples of org.kuali.rice.krad.UserSession


   * @throws InstantiationException
   * @throws WorkflowException
   */
  public void testMatterTransactionDocSearch(Class<? extends MatterTransactionDoc> txDocClass, String docType) throws InstantiationException, IllegalAccessException, WorkflowException {
    // route some test documents then search
    GlobalVariables.setUserSession(new UserSession("lawyer1"));
    MatterTransactionDoc txDoc1 = populateTransactionDocForRouting(txDocClass);
    testTransactionalRoutingInitToFinal(txDoc1);
   
    MatterTransactionDoc txDoc2 = populateTransactionDocForRouting(txDocClass);
    txDoc2.setAmount(new BigDecimal(50001));
View Full Code Here


   */
  public void testTransactionalRoutingInitToFinal(Document doc)
      throws WorkflowException {
   
    // approve as lawyer1
    GlobalVariables.setUserSession(new UserSession("lawyer1"));
    /*doc = KRADServiceLocatorWeb.getDocumentService().getByDocumentHeaderId(doc.getDocumentNumber());
    assertTrue("document should be enroute", doc.getDocumentHeader().getWorkflowDocument().isEnroute());*/
    KRADServiceLocatorWeb.getDocumentService().routeDocument(doc, "approved", null);
   
    //retrieve again to confirm status
View Full Code Here

TOP

Related Classes of org.kuali.rice.krad.UserSession

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.