@Test(expected=IllegalStateException.class) public void shouldFailAssertion() throws Exception { new ElasticsearchItemWriter(null).afterPropertiesSet(); fail("Assertion shold have thrown exception on null ElasticsearchOperations"); }
@Override public void afterPropertiesSet() throws Exception { state(elasticsearchOperations != null, "An ElasticsearchOperations implementation is required."); }
ElasticsearchItemWriter implements ItemWriter<IndexQuery>, InitializingBean { @Override public void afterPropertiesSet() throws Exception { state(elasticsearchOperations != null, "An ElasticsearchOperations implementation is required."); } }
ElasticsearchItemWriter implements ItemWriter<IndexQuery>, InitializingBean { @Override public void afterPropertiesSet() throws Exception { state(elasticsearchOperations != null, "An ElasticsearchOperations implementation is required."); } ElasticsearchItemWriter(ElasticsearchOperations elasticsearchOperations); }
ElasticsearchItemWriter implements ItemWriter<IndexQuery>, InitializingBean { @Override public void afterPropertiesSet() throws Exception { state(elasticsearchOperations != null, "An ElasticsearchOperations implementation is required."); } ElasticsearchItemWriter(ElasticsearchOperations elasticsearchOperations); void setDelete(boolean delete); @Override void afterPropertiesSet(); @Override void write(List<? extends IndexQuery> items); }
ElasticsearchItemWriter implements ItemWriter<IndexQuery>, InitializingBean { @Override public void afterPropertiesSet() throws Exception { state(elasticsearchOperations != null, "An ElasticsearchOperations implementation is required."); } ElasticsearchItemWriter(ElasticsearchOperations elasticsearchOperations); void setDelete(boolean delete); @Override void afterPropertiesSet(); @Override void write(List<? extends IndexQuery> items);  }