Exemple #1
0
 @Test(groups = {"implementation"})
 public void factory_ofSecondOfDay_singletons() {
   for (int i = 0; i < 24; i++) {
     LocalTime test1 = LocalTime.ofSecondOfDay(i * 60L * 60L);
     LocalTime test2 = LocalTime.of(i, 0);
     assertSame(test1, test2);
   }
 }
Exemple #2
0
 @Test
 public void testLocalTime() {
   System.out.println(LocalTime.now());
   System.out.println(LocalTime.now(ZoneId.of("Asia/Tokyo")));
   System.out.println(LocalTime.ofSecondOfDay(10000));
 }