コード例 #1
0
 @Test
 public void testPersonnelLinkWithSelfLink() throws Exception {
   branchOffice = TestObjectFactory.getOffice(TestObjectFactory.SAMPLE_BRANCH_OFFICE);
   createPersonnel(branchOffice, PersonnelLevel.LOAN_OFFICER);
   String createdLink = TagGenerator.createHeaderLinks(personnel, true, randomNum);
   Assert.assertEquals(true, createdLink.contains("PersonAction"));
   Assert.assertEquals(true, createdLink.contains("TestBranchOffice"));
 }
コード例 #2
0
 @Test
 public void testTagGeneratorFactoryForPersonnel() throws Exception {
   branchOffice = TestObjectFactory.getOffice(TestObjectFactory.SAMPLE_BRANCH_OFFICE);
   createPersonnel(branchOffice, PersonnelLevel.LOAN_OFFICER);
   TagGenerator tagGenerator = TagGeneratorFactory.getInstance().getGenerator(personnel);
   tagGenerator = TagGeneratorFactory.getInstance().getGenerator(personnel);
   if (tagGenerator instanceof PersonnelTagGenerator) {
     Assert.assertTrue(true);
   }
 }