Jean-Francois Leveque

Vrai log d'erreur au lieu de la console. :(

......@@ -13,6 +13,8 @@ import org.mockito.ArgumentCaptor;
import org.mockito.Captor;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.HashSet;
import java.util.Set;
......@@ -27,6 +29,7 @@ import static org.mockito.Mockito.*;
@ExtendWith(MockitoExtension.class)
@DisplayName("Service layer for all publisher-related data")
public class PublisherServiceDefaultTest {
Logger logger = LoggerFactory.getLogger(getClass());
PublisherServiceDefault publisherServiceDefault;
PublisherVersion publisherVersion;
......@@ -109,7 +112,7 @@ public class PublisherServiceDefaultTest {
try {
Mockito.verify(publisherSearchRepository).save(indexedPublisherArgumentCaptor.capture());
} catch (IndexingException e) {
e.printStackTrace();
logger.error("IndexingException {}", e);
}
IndexedPublisher indexedPublisher = indexedPublisherArgumentCaptor.getValue();
assertThat(indexedPublisher.getPublisherId()).isEqualTo(111);
......