Package org.martinlaw.bo

Examples of org.martinlaw.bo.Status.refresh()


 
    Status status = new Status();
    status.setName(statusText);
    // save status since it is not updated from the court case - ojb config to prevent object modified errors when the status is changed
    getBoSvc().save(status);
    status.refresh();
    matter.setStatusId(status.getId());
    matter.setClientPrincipalName(getTestUtils().getTestClientPrincipalName());
    getTestUtils().addClients(matter);
   
    return matter;
View Full Code Here


    scope2.setQualifiedClassName(canonicalName2);
    status.getScope().add(scope2);
   
    getBoSvc().save(status);
    //refresh
    status.refresh();
    // retrieve
    assertEquals("the Status does not match", "pending", status.getName());
    assertFalse("scope should not be empty", status.getScope().isEmpty());
    assertEquals("scope size differs", 2, status.getScope().size());
    assertEquals("class name differs", canonicalName1, status.getScope().get(0).getQualifiedClassName());
View Full Code Here

    //update
    status.setName("appealed");
    status.getScope().remove(0);
    getBoSvc().save(status);
    //refresh
    status.refresh();
    assertEquals("the Status does not match", "appealed", status.getName());
    assertEquals("scope size differs", 1, status.getScope().size());
    assertEquals("class name differs", canonicalName2, status.getScope().get(0).getQualifiedClassName());
    // delete
    getBoSvc().delete(status);
View Full Code Here

  public <M extends Matter> Matter getTestMatter(String localRef, Class<M> klass) throws InstantiationException, IllegalAccessException {
    //set up test status
    Status status = new Status();
    status.setName("Testing");
    getBoSvc().save(status);
    status.refresh();
    assertNotNull(status.getId());
    //create new case bo
    Matter matter = klass.newInstance();
   
    matter.setLocalReference(localRef);
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.