Skip to content

Commit

Permalink
added unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MherBaghinyan committed Apr 18, 2019
1 parent f3f4c32 commit 637f2e9
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,33 @@ public void givenLocalDateTime_WhenGetMillis() {
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);
}
}

0 comments on commit 637f2e9

Please sign in to comment.