Examples of MatterAssignee


Examples of org.martinlaw.bo.MatterAssignee

  @Test(expected = DataIntegrityViolationException.class)
  /**
   * tests that non nullable fields are checked
   */
  public void testMatterMatterAssigneeNullableFields() {
    MatterAssignee assignment = new MatterAssignee();
    getBoSvc().save(assignment);
  }
View Full Code Here

Examples of org.martinlaw.bo.MatterAssignee

  /**
   * tests retrieving from db - for data inserted via sql
   */
  public void testMatterMatterAssigneeRetrieve() {
    // retrieve object populated via sql script
    MatterAssignee assignee = getBoSvc().findBySinglePrimaryKey(MatterAssignee.class, 1001l);
    assertNotNull("retrieved assignee should not be null", assignee);
    assertEquals("pauline_njogu", assignee.getPrincipalName());
    assertNotNull("matter should not be null", assignee.getMatter());
   
    assignee = getBoSvc().findBySinglePrimaryKey(MatterAssignee.class, 1002l);
    assertFalse("assignee is inactive", assignee.getActive());
    assertFalse("assignee has no physical file", assignee.getHasPhysicalFile());
   
    assignee = getBoSvc().findBySinglePrimaryKey(MatterAssignee.class, 1003l);
    assertTrue("assignee is active", assignee.getActive());
    assertFalse("assignee has no physical file", assignee.getHasPhysicalFile());
  }
View Full Code Here

Examples of org.martinlaw.bo.MatterAssignee

 
  /**
   * test routing for {@link MatterAssignee}
   */
  public void testAssigneeRouting() {
    MatterAssignee testAssignee = getTestUtils().getTestAssignee();
    try {
      testMaintenanceRoutingInitToFinal(getDocTypeName(), testAssignee);
    } catch (Exception e) {
      log .error("test failed", e);
      fail("test routing " + getDocTypeName() + " caused an exception");
    }
    // confirm that BO was saved to DB
    MatterAssignee result = getBoSvc().findBySinglePrimaryKey(testAssignee.getClass(), testAssignee.getMatterId());
    assertNotNull("assignment should have been persisted", result);
    getTestUtils().testAssigneeFields(result);

 
  }
View Full Code Here

Examples of org.martinlaw.bo.MatterAssignee

   * @throws IllegalAccessException
   * @throws InstantiationException
   * @throws WorkflowException
   */
  public void runAssignmentDocumentSearch() throws WorkflowException, InstantiationException, IllegalAccessException {
    MatterAssignee testAssignee = getTestUtils().getTestAssignee();
    testAssignee.setActive(false);
    testMaintenanceRoutingInitToFinal(getDocTypeName(), testAssignee);
   
    MatterAssignee testAssignee2 = getTestUtils().getTestAssignee();
    testAssignee2.setMatterId(1003l);
    testAssignee2.setHasPhysicalFile(true);
    final String principalName = "eric";
    testAssignee2.setPrincipalName(principalName);
    testMaintenanceRoutingInitToFinal(getDocTypeName(), testAssignee2);
   
    String localRef = "EN/CN/002";
    String name = "*supply*";
    // test for active, hasphysical file
View Full Code Here

Examples of org.martinlaw.bo.MatterAssignee

   * @return the test object
   * @throws IllegalAccessException
   * @throws InstantiationException
   */
  public MatterAssignee getTestAssignee() {
    MatterAssignee assignee = new MatterAssignee();
   
    assignee.setPrincipalName(assignee1);
    assignee.setMatterId(1004l);
   
    return assignee;
  }
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.