Jean-Francois Leveque

On logge l'erreur, même pour un test.

......@@ -9,6 +9,8 @@ import org.junit.platform.runner.JUnitPlatform;
import org.junit.runner.RunWith;
import org.legrog.test.MockitoExtension;
import org.mockito.Mock;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
......@@ -25,6 +27,7 @@ import static org.assertj.core.api.Assertions.assertThat;
@DisplayName("Indexes and searches with SearchRepository")
public class PublisherSearchRepositorySolrjTest {
Logger logger = LoggerFactory.getLogger(getClass());
private PublisherSearchRepository publisherSearchRepository;
private SolrClient solrClient;
......@@ -60,6 +63,7 @@ public class PublisherSearchRepositorySolrjTest {
try {
publisherSearchRepository.save(indexedPublisher);
} catch (IndexingException ie) {
logger.error("IndexingException {}", ie);
assertThat(ie.getRootCause().getClass()).isEqualTo(BindingException.class);
}
}
......