@Test void testAddUnknownLanguage() { Language language = getMockLanguage("unknownLanguage"); assertThrows( LanguageModificationException.class, () -> languageRepositoryDecorator.add(language)); }
@Override public void add(Language language) { validateLanguage(language); delegate().add(language); }
LanguageRepositoryDecorator extends AbstractRepositoryDecorator<Language> { @Override public void add(Language language) { validateLanguage(language); delegate().add(language); } }
LanguageRepositoryDecorator extends AbstractRepositoryDecorator<Language> { @Override public void add(Language language) { validateLanguage(language); delegate().add(language); } LanguageRepositoryDecorator(Repository<Language> delegateRepository); }
LanguageRepositoryDecorator extends AbstractRepositoryDecorator<Language> { @Override public void add(Language language) { validateLanguage(language); delegate().add(language); } LanguageRepositoryDecorator(Repository<Language> delegateRepository); @Override void delete(Language language); @Override void delete(Stream<Language> entities); @Override void deleteById(Object id); @Override void deleteAll(Stream<Object> ids); @Override void deleteAll(); @Override void add(Language language); @Override Integer add(Stream<Language> languageStream); }
LanguageRepositoryDecorator extends AbstractRepositoryDecorator<Language> { @Override public void add(Language language) { validateLanguage(language); delegate().add(language); } LanguageRepositoryDecorator(Repository<Language> delegateRepository); @Override void delete(Language language); @Override void delete(Stream<Language> entities); @Override void deleteById(Object id); @Override void deleteAll(Stream<Object> ids); @Override void deleteAll(); @Override void add(Language language); @Override Integer add(Stream<Language> languageStream);  }