test/java/time/tck/java/time/TCKClock_Tick.java

Print this page

        

*** 246,260 **** assertEquals(a.hashCode() == c.hashCode(), false); Clock d = Clock.tick(Clock.system(PARIS), Duration.ofMillis(499)); assertEquals(a.hashCode() == d.hashCode(), false); } - - //----------------------------------------------------------------------- - public void test_toString() { - // spec requires "full state" in toString() - Clock test = Clock.tick(Clock.system(PARIS), AMOUNT); - assertEquals(test.toString().contains("Europe/Paris"), true); - assertEquals(test.toString().contains("PT2S"), true); - } - } --- 246,251 ----