added unit tests

This commit is contained in:
mherbaghinyan 2019-04-18 16:05:44 +04:00
parent f3f4c32f01
commit 637f2e945a
1 changed files with 29 additions and 0 deletions

View File

@ -10,4 +10,33 @@ public class ConvertDateTimeUnitTest {
System.out.println("LocalDateTime in milliseconds : " + millis);
}
@Test
public void givenJava8Instant_WhenGetMillis() {
long millis = ConvertDateTime.java8Instant();
System.out.println("Java 8 Instant in milliseconds : " + millis);
}
@Test
public void givenDate_WhenGetMillis() {
long millis = ConvertDateTime.coreDate();
System.out.println("Core Date in milliseconds : " + millis);
}
@Test
public void givenCalendar_WhenGetMillis() {
long millis = ConvertDateTime.calendar();
System.out.println("Calendar in milliseconds : " + millis);
}
@Test
public void givenJodaInstant_WhenGetMillis() {
long millis = ConvertDateTime.jodaInstant();
System.out.println("JODA Instant in milliseconds : " + millis);
}
@Test
public void givenJODADateTime_WhenGetMillis() {
long millis = ConvertDateTime.jodaDateTime();
System.out.println("JODA DateTime in milliseconds : " + millis);
}
}