Skip to content

Commit 02d6213

Browse files
committed
Added test for "0:00:00.0000000" TimeOfDay format
1 parent ad3be7a commit 02d6213

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/java/com/microsoft/graph/serializer/TimeOfDayTests.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,12 @@ public void testTimeOfDayDeserializerIndefinite() throws Exception{
3636
assertEquals(1, time.getSecond());
3737
}
3838

39+
@Test
40+
public void testTimeOfDayDeserializerWithFraction() throws Exception{
41+
TimeOfDay time = TimeOfDay.parse("12:30:44.0000000");
42+
assertEquals(12, time.getHour());
43+
assertEquals(30, time.getMinute());
44+
assertEquals(44, time.getSecond());
45+
}
46+
3947
}

0 commit comments

Comments
 (0)