Package org.martinlaw.bo

Examples of org.martinlaw.bo.MatterType


  /**
   *
   */
  public MatterTypeBOTest() {
    matterType = new MatterType();
    matterType.setId(10003l);
    matterType.setName("commercial");
    matterType.setDescription("any biz mambo");
  }
View Full Code Here


    return "MatterTypeMaintenanceDocument";
  }

  @Override
  protected void populateAdditionalFieldsForCrud(Type type) {
    MatterType matterType = (MatterType)type;
    MatterTypeAnnexDetail annexDetail = new MatterTypeAnnexDetail();
    assertEquals("default value differs", Long.valueOf(1), annexDetail.getSequence());
    annexDetail.setAnnexTypeId(10019l);
    matterType.getAnnexDetails().add(annexDetail);
  }
View Full Code Here

    matterType.getAnnexDetails().add(annexDetail);
  }

  @Override
  protected void testCrudCreated(Type type) {
    MatterType matterType = (MatterType)type;
    final List<MatterTypeAnnexDetail> annexDetails = matterType.getAnnexDetails();
    testAnnexDetails(annexDetails, 1, annexTypeName, Long.valueOf(1));
  }
View Full Code Here

    testAnnexDetails(annexDetails, 1, annexTypeName, Long.valueOf(1));
  }

  @Override
  protected void testCrudDeleted(Type type) {
    MatterType matterType = (MatterType)type;
    assertNull("annex detail should have been deleted", getBoSvc().findBySinglePrimaryKey(
        MatterTypeAnnexDetail.class, matterType.getAnnexDetails().get(0).getAnnexType().getName()));
   
  }
View Full Code Here

   
  }

  @Override
  protected void additionalTestsForRetrievedObject(Type type) {
    MatterType matterType = (MatterType)type;
    final List<MatterTypeAnnexDetail> annexDetails = matterType.getAnnexDetails();
    testAnnexDetails(annexDetails, 1, "demand letter", Long.valueOf(3));
  }
View Full Code Here

  @Override
  protected Matter getTestMatter(String localReference, String statusText,
      String matterName)
      throws InstantiationException, IllegalAccessException {
    CourtCase matter = (CourtCase) super.getTestMatter(localReference, statusText, matterName);
    MatterType type = new MatterType();
    type.setName(caseTypeName);
    getBoSvc().save(type);
    type.refresh();
    matter.setTypeId(type.getId());
    matter.setCourtReference(courtReference);
    getTestUtils().addWitnesses(matter);
   
    return matter;
  }
View Full Code Here

TOP

Related Classes of org.martinlaw.bo.MatterType

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.