Skip to content
Snippets Groups Projects
Commit c005c86e authored by Mounir Nayab's avatar Mounir Nayab
Browse files

[TECH] Fix unit test for date conversion

parent 18e1cc55
No related branches found
No related tags found
1 merge request!1Feature/design/1
...@@ -6,6 +6,7 @@ import java.io.IOException; ...@@ -6,6 +6,7 @@ import java.io.IOException;
import java.util.Calendar; import java.util.Calendar;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.TimeZone;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
...@@ -38,6 +39,7 @@ public class VitamUIUtilsTest { ...@@ -38,6 +39,7 @@ public class VitamUIUtilsTest {
@Test @Test
public void testConvertStringToDate() throws IOException { public void testConvertStringToDate() throws IOException {
TimeZone.setDefault(TimeZone.getTimeZone("Europe/Paris"));
Date date = VitamUIUtils.convertStringToDate("2020-01-01"); Date date = VitamUIUtils.convertStringToDate("2020-01-01");
System.out.println(date); System.out.println(date);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment