Package org.martinlaw.bo

Examples of org.martinlaw.bo.Matter


   */
  @Test
  public void testCourtCaseRouting_required_field_validated_onroute()
      throws InstantiationException, WorkflowException,
      IllegalAccessException {
        Matter courtCase = getTestMatter();
        courtCase.setLocalReference(null);
        //initiate as the clerk
        Document doc = getPopulatedMaintenanceDocument(getDocTypeName(), courtCase, "clerk1");
        testRouting_required_validated_onroute(doc);
      }
View Full Code Here


  @Test
  public void testMatter_doc_search() throws WorkflowException, InstantiationException, IllegalAccessException {
    try {
      // route 2 docs first
      final String docType = getDocTypeName();
      Matter matter = getTestMatter();
      final String caseName1 = "Bingu Vs Nchi";
      matter.setName(caseName1);
      testMaintenanceRoutingInitToFinal(docType, matter);
      final String localRef = "LOCALREF1";
      Matter matter2 =  getTestMatter();
      matter2.setLocalReference(localRef);
      matter2.setName("Moto vs Maji");
      testMaintenanceRoutingInitToFinal(docType, matter2);
     
      SearchTestCriteria crit1 = new SearchTestCriteria();
      crit1.setExpectedDocuments(2);
      // search for local reference
View Full Code Here

    status.setName("Testing");
    getBoSvc().save(status);
    status.refresh();
    assertNotNull(status.getId());
    //create new case bo
    Matter matter = klass.newInstance();
   
    matter.setLocalReference(localRef);
    matter.setClientPrincipalName("client1");
    String name = "Fatuma Zainab Mohammed vs \n" +
        "Ghati Dennitah \n"+
        "IEBC\n" +
        "Benson Njau (Kuria East Returning Officer)\n" +
        "Lilina Liluma (Returning Officer Awendo Constituency)\n" +
        "Moses Omondo Daula (Returning Officer Nyatike Constituency)\n"+
        "Jakton Nyonje (Returning Officer Oriri Constituency)\n" +
        "Noah Bowen (Rongo Constituency)\n" +
        "Alex Uyuga (Returning officer Suna East Constituency)\n" +
        "Jairus Obago (Returning Officer Migori County)\n" +
        "Adam Mohamed (Returning officer Kuria West Constituency)\n";
    matter.setName(name);
    matter.setStatus(status);
    // side step validation error - error.required
    matter.setStatusId(status.getId());
    matter.setTypeId(10011l);
    // clients & witnesses
    addClients(matter);
   
    return matter;
  }
View Full Code Here

    comment = String.format(commentTemplate, expectedContractScopeCount, dataObjectName, "contract", expectedEmptyScopeCount);
    when(newMaintainableObject.getDataObject()).thenReturn(new Contract());
    assertEquals(comment, expectedContractScopeCount + expectedEmptyScopeCount, kv.getKeyValues(form).size());
   
    comment = String.format(commentTemplate, expectedMatterScopeCount, dataObjectName, "matter", expectedEmptyScopeCount);
    when(newMaintainableObject.getDataObject()).thenReturn(new Matter());
    assertEquals(comment, expectedMatterScopeCount + expectedEmptyScopeCount, kv.getKeyValues(form).size());
   
    comment = String.format(commentTemplate, expectedConveyanceScopeCount, dataObjectName, "Conveyance", expectedEmptyScopeCount);
    when(newMaintainableObject.getDataObject()).thenReturn(new Conveyance());
    assertEquals(comment, expectedConveyanceScopeCount + expectedEmptyScopeCount, kv.getKeyValues(form).size());
View Full Code Here

TOP

Related Classes of org.martinlaw.bo.Matter

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.