@Test void deleteAllStream() { Exception exception = assertThrows( UnsupportedOperationException.class, () -> userRepositoryDecorator.deleteAll(Stream.of("1"))); assertThat(exception.getMessage()).containsPattern(DELETE_USER_MSG); }
@Override public void deleteAll(Stream<Object> ids) { throw new UnsupportedOperationException(DELETE_USER_MSG); }
UserRepositoryDecorator extends AbstractRepositoryDecorator<User> { @Override public void deleteAll(Stream<Object> ids) { throw new UnsupportedOperationException(DELETE_USER_MSG); } }
UserRepositoryDecorator extends AbstractRepositoryDecorator<User> { @Override public void deleteAll(Stream<Object> ids) { throw new UnsupportedOperationException(DELETE_USER_MSG); } UserRepositoryDecorator(Repository<User> delegateRepository, PasswordEncoder passwordEncoder); }
UserRepositoryDecorator extends AbstractRepositoryDecorator<User> { @Override public void deleteAll(Stream<Object> ids) { throw new UnsupportedOperationException(DELETE_USER_MSG); } UserRepositoryDecorator(Repository<User> delegateRepository, PasswordEncoder passwordEncoder); @Override void add(User entity); @Override void update(User entity); @Override Integer add(Stream<User> entities); @Override void update(Stream<User> entities); @Override void delete(User entity); @Override void delete(Stream<User> entities); @Override void deleteById(Object id); @Override void deleteAll(Stream<Object> ids); @Override void deleteAll(); }
UserRepositoryDecorator extends AbstractRepositoryDecorator<User> { @Override public void deleteAll(Stream<Object> ids) { throw new UnsupportedOperationException(DELETE_USER_MSG); } UserRepositoryDecorator(Repository<User> delegateRepository, PasswordEncoder passwordEncoder); @Override void add(User entity); @Override void update(User entity); @Override Integer add(Stream<User> entities); @Override void update(Stream<User> entities); @Override void delete(User entity); @Override void delete(Stream<User> entities); @Override void deleteById(Object id); @Override void deleteAll(Stream<Object> ids); @Override void deleteAll();  }