Revision 48892
Added by Claudio Atzori over 6 years ago
OAIFeedMapperTest.java | ||
---|---|---|
17 | 17 |
import eu.dnetlib.miscutils.datetime.DateUtils; |
18 | 18 |
import org.apache.commons.io.IOUtils; |
19 | 19 |
import org.apache.hadoop.mapreduce.Counter; |
20 |
import org.apache.solr.common.util.DateUtil; |
|
21 | 20 |
import org.dom4j.DocumentException; |
22 | 21 |
import org.junit.Before; |
23 | 22 |
import org.junit.Test; |
... | ... | |
72 | 71 |
|
73 | 72 |
String feedDateString = DateUtils.now_ISO8601(); |
74 | 73 |
try { |
75 |
feedDate = DateUtil.parseDate(feedDateString); |
|
74 |
feedDate = org.apache.commons.lang.time.DateUtils.parseDate( |
|
75 |
feedDateString, |
|
76 |
new String[]{ "yyyy-MM-dd'T'HH:mm:ssXXX", "yyyy-MM-dd'T'HH:mm:ssZ" }); |
|
76 | 77 |
} catch (ParseException e) { |
77 | 78 |
e.printStackTrace(System.err); |
78 | 79 |
throw new RuntimeException(e); |
Also available in: Unified diff
upgraded solr version to 6.6.0