2020-09-07 15:36:30 +02:00
|
|
|
package eu.dnetlib.ariadneplus.reader.utils;
|
|
|
|
|
2020-09-07 15:37:05 +02:00
|
|
|
import org.junit.Assert;
|
|
|
|
import org.junit.Test;
|
|
|
|
|
2020-09-07 15:36:30 +02:00
|
|
|
public class ESUtilsTest {
|
2020-09-07 15:37:05 +02:00
|
|
|
|
|
|
|
@Test
|
|
|
|
public void testParseDate(){
|
|
|
|
String date = "2013-03-13";
|
|
|
|
String parsed = ESUtils.getESFormatDate(date);
|
|
|
|
Assert.assertEquals(date, parsed);
|
|
|
|
}
|
2020-09-07 15:36:30 +02:00
|
|
|
}
|