@Test public void testEmptyHistory() throws RepositoryNameAlreadyUsedException { createTestData(); logger.debug("Done creating data for test, start testing"); Long addTextUnitAndCheck1 = addTextUnitAndCheck(tmId, assetId, "name", "this is the content", "some comment", "3063c39d3cf8ab69bcabbbc5d7187dc9", "cf8ea6b6848f23345648038bc3abf324"); Locale frFRLocale = localeService.findByBcp47Tag("fr-FR"); List<TMTextUnitVariant> history = tmHistoryService.findHistory(addTextUnitAndCheck1, frFRLocale.getId()); assertNotNull(history); assertTrue(history.isEmpty()); }
public List<TMTextUnitVariant> findHistory(Long tmTextUnitId, Long localeId) { return tmTextUnitVariantRepository.findAllByTmTextUnit_IdAndLocale_IdOrderByCreatedDateDesc(tmTextUnitId, localeId); }
TMTextUnitHistoryService { public List<TMTextUnitVariant> findHistory(Long tmTextUnitId, Long localeId) { return tmTextUnitVariantRepository.findAllByTmTextUnit_IdAndLocale_IdOrderByCreatedDateDesc(tmTextUnitId, localeId); } }
TMTextUnitHistoryService { public List<TMTextUnitVariant> findHistory(Long tmTextUnitId, Long localeId) { return tmTextUnitVariantRepository.findAllByTmTextUnit_IdAndLocale_IdOrderByCreatedDateDesc(tmTextUnitId, localeId); }  }
TMTextUnitHistoryService { public List<TMTextUnitVariant> findHistory(Long tmTextUnitId, Long localeId) { return tmTextUnitVariantRepository.findAllByTmTextUnit_IdAndLocale_IdOrderByCreatedDateDesc(tmTextUnitId, localeId); }  List<TMTextUnitVariant> findHistory(Long tmTextUnitId, Long localeId); }
TMTextUnitHistoryService { public List<TMTextUnitVariant> findHistory(Long tmTextUnitId, Long localeId) { return tmTextUnitVariantRepository.findAllByTmTextUnit_IdAndLocale_IdOrderByCreatedDateDesc(tmTextUnitId, localeId); }  List<TMTextUnitVariant> findHistory(Long tmTextUnitId, Long localeId);  }