Revision 62519
Added by Katerina Iatropoulou over 1 year ago
APIResponseFormatterTest.java | ||
---|---|---|
3 | 3 |
import eu.dnetlib.data.search.web.api.APIResponseFormatter; |
4 | 4 |
import junit.framework.Assert; |
5 | 5 |
import org.apache.commons.lang.StringEscapeUtils; |
6 |
import org.apache.log4j.BasicConfigurator; |
|
6 |
import org.apache.logging.log4j.Level; |
|
7 |
import org.apache.logging.log4j.core.config.Configurator; |
|
8 |
import org.apache.logging.log4j.core.config.DefaultConfiguration; |
|
7 | 9 |
import org.junit.Before; |
8 | 10 |
import org.junit.Test; |
9 | 11 |
import org.mockito.Mockito; |
... | ... | |
23 | 25 |
|
24 | 26 |
@Before |
25 | 27 |
public void before() { |
26 |
BasicConfigurator.configure(); |
|
28 |
Configurator.initialize(new DefaultConfiguration()); |
|
29 |
Configurator.setRootLevel(Level.INFO); |
|
27 | 30 |
requestMock = Mockito.mock(HttpServletRequest.class); |
28 | 31 |
when(requestMock.getRequestURL()).thenReturn(new StringBuffer().append("http://demo.url/search")); |
29 | 32 |
} |
Also available in: Unified diff
moved to log4j2 security update