@Test public void shouldAddOrUpdateCustomizedText() { String originalText = "original"; String customText = "custom"; customizedTextServiceFacadeWebTier.addOrUpdateCustomizedText(originalText, customText); verify(customizedTextDao).addOrUpdateCustomizedText(originalText, customText); }
@Override public void addOrUpdateCustomizedText(String originalText, String customText) { try { this.transactionHelper.startTransaction(); customizedTextDao.addOrUpdateCustomizedText(originalText, customText); this.transactionHelper.commitTransaction(); } catch (Exception e) { this.transactionHelper.rollbackTransaction(); throw new MifosRuntimeException(e); } finally { this.transactionHelper.closeSession(); } updateLegacyCaches(); }
CustomizedTextServiceFacadeWebTier implements CustomizedTextServiceFacade { @Override public void addOrUpdateCustomizedText(String originalText, String customText) { try { this.transactionHelper.startTransaction(); customizedTextDao.addOrUpdateCustomizedText(originalText, customText); this.transactionHelper.commitTransaction(); } catch (Exception e) { this.transactionHelper.rollbackTransaction(); throw new MifosRuntimeException(e); } finally { this.transactionHelper.closeSession(); } updateLegacyCaches(); } }
CustomizedTextServiceFacadeWebTier implements CustomizedTextServiceFacade { @Override public void addOrUpdateCustomizedText(String originalText, String customText) { try { this.transactionHelper.startTransaction(); customizedTextDao.addOrUpdateCustomizedText(originalText, customText); this.transactionHelper.commitTransaction(); } catch (Exception e) { this.transactionHelper.rollbackTransaction(); throw new MifosRuntimeException(e); } finally { this.transactionHelper.closeSession(); } updateLegacyCaches(); } @Autowired  CustomizedTextServiceFacadeWebTier(CustomizedTextDao customizedTextDao, MessageSource messageSource); }
CustomizedTextServiceFacadeWebTier implements CustomizedTextServiceFacade { @Override public void addOrUpdateCustomizedText(String originalText, String customText) { try { this.transactionHelper.startTransaction(); customizedTextDao.addOrUpdateCustomizedText(originalText, customText); this.transactionHelper.commitTransaction(); } catch (Exception e) { this.transactionHelper.rollbackTransaction(); throw new MifosRuntimeException(e); } finally { this.transactionHelper.closeSession(); } updateLegacyCaches(); } @Autowired  CustomizedTextServiceFacadeWebTier(CustomizedTextDao customizedTextDao, MessageSource messageSource); @Override void addOrUpdateCustomizedText(String originalText, String customText); @Override void removeCustomizedText(String originalText); @Override Map<String, String> retrieveCustomizedText(); @Override String replaceSubstitutions(String message); @Override CustomizedTextDto getCustomizedTextDto(String originalText); @Override void convertMigratedLabelKeysToLocalizedText(Locale locale); }
CustomizedTextServiceFacadeWebTier implements CustomizedTextServiceFacade { @Override public void addOrUpdateCustomizedText(String originalText, String customText) { try { this.transactionHelper.startTransaction(); customizedTextDao.addOrUpdateCustomizedText(originalText, customText); this.transactionHelper.commitTransaction(); } catch (Exception e) { this.transactionHelper.rollbackTransaction(); throw new MifosRuntimeException(e); } finally { this.transactionHelper.closeSession(); } updateLegacyCaches(); } @Autowired  CustomizedTextServiceFacadeWebTier(CustomizedTextDao customizedTextDao, MessageSource messageSource); @Override void addOrUpdateCustomizedText(String originalText, String customText); @Override void removeCustomizedText(String originalText); @Override Map<String, String> retrieveCustomizedText(); @Override String replaceSubstitutions(String message); @Override CustomizedTextDto getCustomizedTextDto(String originalText); @Override void convertMigratedLabelKeysToLocalizedText(Locale locale);  }