assertThat(glossaryEntries.size(), is(0));
}
@Test
public void putGlossary() {
Glossary glossary = new Glossary();
GlossaryEntry glossaryEntry1 = new GlossaryEntry();
glossaryEntry1.setSrcLang(LocaleId.EN_US);
glossaryEntry1.setSourcereference("TEST SOURCE REF DATA");
GlossaryTerm glossaryTerm1 = new GlossaryTerm();
glossaryTerm1.setLocale(LocaleId.EN_US);
glossaryTerm1.setContent("TEST DATA 1 EN_US");
glossaryTerm1.getComments().add("COMMENT 1");
GlossaryTerm glossaryTerm2 = new GlossaryTerm();
glossaryTerm2.setLocale(LocaleId.DE);
glossaryTerm2.setContent("TEST DATA 2 DE");
glossaryTerm2.getComments().add("COMMENT 2");
glossaryEntry1.getGlossaryTerms().add(glossaryTerm1);
glossaryEntry1.getGlossaryTerms().add(glossaryTerm2);
GlossaryEntry glossaryEntry2 = new GlossaryEntry();
glossaryEntry2.setSrcLang(LocaleId.EN_US);
glossaryEntry2.setSourcereference("TEST SOURCE REF DATA2");
GlossaryTerm glossaryTerm3 = new GlossaryTerm();
glossaryTerm3.setLocale(LocaleId.EN_US);
glossaryTerm3.setContent("TEST DATA 3 EN_US");
glossaryTerm3.getComments().add("COMMENT 3");
GlossaryTerm glossaryTerm4 = new GlossaryTerm();
glossaryTerm4.setLocale(LocaleId.DE);
glossaryTerm4.setContent("TEST DATA 4 DE");
glossaryTerm4.getComments().add("COMMENT 4");
glossaryEntry2.getGlossaryTerms().add(glossaryTerm3);
glossaryEntry2.getGlossaryTerms().add(glossaryTerm4);
glossary.getGlossaryEntries().add(glossaryEntry1);
glossary.getGlossaryEntries().add(glossaryEntry2);
ClientResponse<String> response = glossaryService.put(glossary);
assertThat(response.getStatus(), is(Status.CREATED.getStatusCode()));