@Test public void testGetMaxLength() { assertThat(persistentTranslationService.getMaxLength(BackendID.GOOGLE)) .isEqualTo(MAX_LENGTH); }
public int getMaxLength(@NotNull BackendID backendID) { return getTranslatorBackend(backendID).getCharLimitPerRequest(); }
PersistentTranslationService { public int getMaxLength(@NotNull BackendID backendID) { return getTranslatorBackend(backendID).getCharLimitPerRequest(); } }
PersistentTranslationService { public int getMaxLength(@NotNull BackendID backendID) { return getTranslatorBackend(backendID).getCharLimitPerRequest(); } @SuppressWarnings("unused")  PersistentTranslationService(); @Inject  PersistentTranslationService(DocumentDAO documentDAO,
            TextFlowDAO textFlowDAO,
            TextFlowTargetDAO textFlowTargetDAO,
            Instance<TranslatorBackend> translatorBackends,
            Event<RequestedMTEvent> requestedMTEvent,
            AuthenticatedAccount authenticatedAccount); }
PersistentTranslationService { public int getMaxLength(@NotNull BackendID backendID) { return getTranslatorBackend(backendID).getCharLimitPerRequest(); } @SuppressWarnings("unused")  PersistentTranslationService(); @Inject  PersistentTranslationService(DocumentDAO documentDAO,
            TextFlowDAO textFlowDAO,
            TextFlowTargetDAO textFlowTargetDAO,
            Instance<TranslatorBackend> translatorBackends,
            Event<RequestedMTEvent> requestedMTEvent,
            AuthenticatedAccount authenticatedAccount); @Transactional List<String> translate(@NotNull Document document,
            @NotNull List<String> sourceStrings,
            @NotNull Locale fromLocale, @NotNull Locale toLocale,
            @NotNull BackendID backendID, @NotNull StringType stringType,
            Optional<String> category); int getMaxLength(@NotNull BackendID backendID); }
PersistentTranslationService { public int getMaxLength(@NotNull BackendID backendID) { return getTranslatorBackend(backendID).getCharLimitPerRequest(); } @SuppressWarnings("unused")  PersistentTranslationService(); @Inject  PersistentTranslationService(DocumentDAO documentDAO,
            TextFlowDAO textFlowDAO,
            TextFlowTargetDAO textFlowTargetDAO,
            Instance<TranslatorBackend> translatorBackends,
            Event<RequestedMTEvent> requestedMTEvent,
            AuthenticatedAccount authenticatedAccount); @Transactional List<String> translate(@NotNull Document document,
            @NotNull List<String> sourceStrings,
            @NotNull Locale fromLocale, @NotNull Locale toLocale,
            @NotNull BackendID backendID, @NotNull StringType stringType,
            Optional<String> category); int getMaxLength(@NotNull BackendID backendID);  }