コード例 #1
0
 public void testRetrieveDormancyDaysForInvalidConnection() throws Exception {
   TestObjectFactory.simulateInvalidConnection();
   try {
     new SavingsPrdBusinessService().getActiveSavingsProductCategories();
     Assert.assertTrue(false);
   } catch (ServiceException e) {
     Assert.assertTrue(true);
   }
 }
コード例 #2
0
 public void testGetApplicablePrdStatusForInvalidConnection() {
   TestObjectFactory.simulateInvalidConnection();
   try {
     new SavingsPrdBusinessService().getApplicablePrdStatus((short) 1);
     Assert.assertTrue(false);
   } catch (ServiceException e) {
     Assert.assertTrue(true);
   }
 }
コード例 #3
0
 public void testGetSavingsApplicableRecurrenceTypesFailure() throws Exception {
   TestObjectFactory.simulateInvalidConnection();
   try {
     new SavingsPrdBusinessService().getSavingsApplicableRecurrenceTypes();
     Assert.assertTrue(false);
   } catch (ServiceException e) {
     Assert.assertTrue(true);
   }
 }
コード例 #4
0
 public void testGetAllSavingsProductsFailure() throws Exception {
   SavingsOfferingBO savingsOffering = createSavingsOfferingBO();
   TestObjectFactory.simulateInvalidConnection();
   try {
     new SavingsPrdBusinessService().getAllSavingsProducts();
     Assert.assertTrue(false);
   } catch (ServiceException e) {
     Assert.assertTrue(true);
     StaticHibernateUtil.closeSession();
     TestObjectFactory.removeObject(savingsOffering);
   }
 }