@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")); }
@Test public void testSavingsAccountLinkWithoutSelfLink() throws Exception { createInitialObjectsForSavings(); String createdLink = TagGenerator.createHeaderLinks(savings, false, randomNum); Assert.assertEquals(true, createdLink.contains("clientsAndAccounts")); Assert.assertEquals(true, createdLink.contains("TestBranchOffice")); Assert.assertEquals(true, createdLink.contains("viewCenterDetails")); Assert.assertEquals(true, createdLink.contains("Center_Active_test")); Assert.assertEquals(true, createdLink.contains("viewGroupDetails")); Assert.assertEquals(true, createdLink.contains("Group_Active_test")); Assert.assertEquals(true, createdLink.contains("prd1")); }