test/java/time/tck/java/time/TCKClock_Offset.java

Print this page

        

@@ -89,12 +89,12 @@
     }
 
     //-----------------------------------------------------------------------
     public void test_offset_ClockDuration() {
         Clock test = Clock.offset(Clock.fixed(INSTANT, PARIS), OFFSET);
-        System.out.println(test.instant());
-        System.out.println(INSTANT.plus(OFFSET));
+        //System.out.println(test.instant());
+        //System.out.println(INSTANT.plus(OFFSET));
         assertEquals(test.instant(), INSTANT.plus(OFFSET));
         assertEquals(test.getZone(), PARIS);
     }
 
     public void test_offset_ClockDuration_zeroDuration() {

@@ -163,14 +163,6 @@
 
         Clock d = Clock.offset(Clock.system(PARIS), OFFSET.minusNanos(1));
         assertEquals(a.hashCode() == d.hashCode(), false);
     }
 
-    //-----------------------------------------------------------------------
-    public void test_toString() {
-        // spec requires "full state" in toString()
-        Clock test = Clock.offset(Clock.system(PARIS), OFFSET);
-        assertEquals(test.toString().contains("Europe/Paris"), true);
-        assertEquals(test.toString().contains("PT2S"), true);
-    }
-
 }