Revision 62526
Added by Katerina Iatropoulou over 1 year ago
ExternalParserTest.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.data.claims.parser; |
2 | 2 |
|
3 | 3 |
import eu.dnetlib.data.claims.entity.Result; |
4 |
import eu.dnetlib.data.claims.handler.DirectIndexHandler; |
|
5 | 4 |
import eu.dnetlib.data.claims.utils.ClaimUtils; |
6 | 5 |
import eu.dnetlib.data.claims.utils.SearchUtils; |
7 |
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; |
|
8 | 9 |
import org.junit.Assert; |
9 | 10 |
import org.junit.Before; |
10 | 11 |
import org.junit.Test; |
11 |
import org.springframework.beans.factory.annotation.Autowired; |
|
12 | 12 |
import org.springframework.context.ApplicationContext; |
13 | 13 |
import org.springframework.context.support.ClassPathXmlApplicationContext; |
14 | 14 |
|
... | ... | |
21 | 21 |
|
22 | 22 |
@Before |
23 | 23 |
public void init() throws Exception { |
24 |
BasicConfigurator.configure(); |
|
24 |
Configurator.initialize(new DefaultConfiguration()); |
|
25 |
Configurator.setRootLevel(Level.INFO); |
|
25 | 26 |
ApplicationContext context = new ClassPathXmlApplicationContext("eu/dnetlib/data/claims/springContext-claims.xml"); |
26 | 27 |
|
27 | 28 |
searchUtils = context.getBean(SearchUtils.class); |
Also available in: Unified diff
log4j2 integrated + uoa-global-parent