Skip to content

Commit

Permalink
[kbss-cvut/termit-ui#581] Improve help text in translation imports Ex…
Browse files Browse the repository at this point in the history
…cel template.
  • Loading branch information
ledsoft committed Dec 3, 2024
1 parent 8303290 commit b864108
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Binary file modified src/main/resources/template/termit-translations-import.xlsx
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void getAllReturnsAllExistingVocabularies() throws Exception {

final MvcResult mvcResult =
mockMvc.perform(get(PATH)).andExpect(status().isOk()).andReturn();
final List<VocabularyDto> result = readValue(mvcResult, new TypeReference<List<VocabularyDto>>() {
final List<VocabularyDto> result = readValue(mvcResult, new TypeReference<>() {
});
assertThat(result, containsSameEntities(vocabularies));
}
Expand Down Expand Up @@ -386,7 +386,7 @@ void getTransitiveImportsReturnsCollectionOfImportIdentifiersRetrievedFromServic
final MvcResult mvcResult =
mockMvc.perform(get(PATH + "/" + FRAGMENT + "/imports")).andExpect(status().isOk())
.andReturn();
final Set<URI> result = readValue(mvcResult, new TypeReference<Set<URI>>() {
final Set<URI> result = readValue(mvcResult, new TypeReference<>() {
});
assertEquals(imports, result);
verify(serviceMock).getReference(VOCABULARY_URI);
Expand All @@ -403,7 +403,7 @@ void getTransitiveImportsReturnsEmptyCollectionWhenNoImportsAreFoundForVocabular
final MvcResult mvcResult =
mockMvc.perform(get(PATH + "/" + FRAGMENT + "/imports")).andExpect(status().isOk())
.andReturn();
final Set<URI> result = readValue(mvcResult, new TypeReference<Set<URI>>() {
final Set<URI> result = readValue(mvcResult, new TypeReference<>() {
});
assertNotNull(result);
assertTrue(result.isEmpty());
Expand Down Expand Up @@ -438,7 +438,7 @@ void getHistoryReturnsListOfChangeRecordsForSpecifiedVocabulary() throws Excepti
mockMvc.perform(get(PATH + "/" + FRAGMENT + "/history")).andExpect(status().isOk())
.andReturn();
final List<AbstractChangeRecord> result =
readValue(mvcResult, new TypeReference<List<AbstractChangeRecord>>() {
readValue(mvcResult, new TypeReference<>() {
});
assertNotNull(result);
assertEquals(records, result);
Expand All @@ -463,7 +463,7 @@ void getHistoryOfContentReturnsListOfAggregatedChangeObjectsForTermsInSpecifiedV
.andExpect(status().isOk())
.andReturn();
final List<AggregatedChangeInfo> result =
readValue(mvcResult, new TypeReference<List<AggregatedChangeInfo>>() {
readValue(mvcResult, new TypeReference<>() {
});
assertNotNull(result);
assertEquals(changes, result);
Expand Down Expand Up @@ -515,7 +515,7 @@ void getSnapshotsReturnsListOfVocabularySnapshotsWhenFilterInstantIsNotProvided(
get(PATH + "/" + FRAGMENT + "/versions").accept(MediaType.APPLICATION_JSON_VALUE))
.andExpect(status().isOk())
.andReturn();
final List<Snapshot> result = readValue(mvcResult, new TypeReference<List<Snapshot>>() {
final List<Snapshot> result = readValue(mvcResult, new TypeReference<>() {
});
assertThat(result, containsSameEntities(snapshots));
verify(serviceMock).findSnapshots(vocabulary);
Expand Down

0 comments on commit b864108

Please sign in to comment.