Jean-Francois Leveque

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

...@@ -9,6 +9,8 @@ import org.junit.platform.runner.JUnitPlatform; ...@@ -9,6 +9,8 @@ import org.junit.platform.runner.JUnitPlatform;
9 import org.junit.runner.RunWith; 9 import org.junit.runner.RunWith;
10 import org.legrog.test.MockitoExtension; 10 import org.legrog.test.MockitoExtension;
11 import org.mockito.Mock; 11 import org.mockito.Mock;
12 +import org.slf4j.Logger;
13 +import org.slf4j.LoggerFactory;
12 14
13 import java.io.IOException; 15 import java.io.IOException;
14 16
...@@ -25,6 +27,7 @@ import static org.assertj.core.api.Assertions.assertThat; ...@@ -25,6 +27,7 @@ import static org.assertj.core.api.Assertions.assertThat;
25 @DisplayName("Indexes and searches with SearchRepository") 27 @DisplayName("Indexes and searches with SearchRepository")
26 28
27 public class PublisherSearchRepositorySolrjTest { 29 public class PublisherSearchRepositorySolrjTest {
30 + Logger logger = LoggerFactory.getLogger(getClass());
28 31
29 private PublisherSearchRepository publisherSearchRepository; 32 private PublisherSearchRepository publisherSearchRepository;
30 private SolrClient solrClient; 33 private SolrClient solrClient;
...@@ -60,6 +63,7 @@ public class PublisherSearchRepositorySolrjTest { ...@@ -60,6 +63,7 @@ public class PublisherSearchRepositorySolrjTest {
60 try { 63 try {
61 publisherSearchRepository.save(indexedPublisher); 64 publisherSearchRepository.save(indexedPublisher);
62 } catch (IndexingException ie) { 65 } catch (IndexingException ie) {
66 + logger.error("IndexingException {}", ie);
63 assertThat(ie.getRootCause().getClass()).isEqualTo(BindingException.class); 67 assertThat(ie.getRootCause().getClass()).isEqualTo(BindingException.class);
64 } 68 }
65 } 69 }
......