@Test public void shouldReturnCustomTranslationDD() { DataDefinition result = customTranslationManagementService.getCustomTranslationDD(); assertEquals(customTranslationDD, result); }
@Override public DataDefinition getCustomTranslationDD() { return dataDefinitionService.get(CustomTranslationContants.PLUGIN_IDENTIFIER, CustomTranslationContants.MODEL_CUSTOM_TRANSLATION); }
CustomTranslationManagementServiceImpl implements CustomTranslationManagementService { @Override public DataDefinition getCustomTranslationDD() { return dataDefinitionService.get(CustomTranslationContants.PLUGIN_IDENTIFIER, CustomTranslationContants.MODEL_CUSTOM_TRANSLATION); } }
CustomTranslationManagementServiceImpl implements CustomTranslationManagementService { @Override public DataDefinition getCustomTranslationDD() { return dataDefinitionService.get(CustomTranslationContants.PLUGIN_IDENTIFIER, CustomTranslationContants.MODEL_CUSTOM_TRANSLATION); }  }
CustomTranslationManagementServiceImpl implements CustomTranslationManagementService { @Override public DataDefinition getCustomTranslationDD() { return dataDefinitionService.get(CustomTranslationContants.PLUGIN_IDENTIFIER, CustomTranslationContants.MODEL_CUSTOM_TRANSLATION); }  @Override @Transactional @SuppressWarnings("unchecked") void addCustomTranslations(final String pluginIdentifier, final String locale, final Map<String, String> translations); @Override @Transactional void removeCustomTranslations(final String pluginIdentifier); @Override @Transactional @SuppressWarnings("unchecked") List<String> getCustomTranslationKeys(final String pluginIdentifier); @Override Entity getCustomTranslation(final String pluginIdentifier, final String locale, final String key); @Override List<Entity> getCustomTranslations(final String locale); @Override List<Entity> getCustomTranslations(); @Override DataDefinition getCustomTranslationDD(); }
CustomTranslationManagementServiceImpl implements CustomTranslationManagementService { @Override public DataDefinition getCustomTranslationDD() { return dataDefinitionService.get(CustomTranslationContants.PLUGIN_IDENTIFIER, CustomTranslationContants.MODEL_CUSTOM_TRANSLATION); }  @Override @Transactional @SuppressWarnings("unchecked") void addCustomTranslations(final String pluginIdentifier, final String locale, final Map<String, String> translations); @Override @Transactional void removeCustomTranslations(final String pluginIdentifier); @Override @Transactional @SuppressWarnings("unchecked") List<String> getCustomTranslationKeys(final String pluginIdentifier); @Override Entity getCustomTranslation(final String pluginIdentifier, final String locale, final String key); @Override List<Entity> getCustomTranslations(final String locale); @Override List<Entity> getCustomTranslations(); @Override DataDefinition getCustomTranslationDD();  }