Fixing TCKZonedDateTime
@@ -1309,6 +1309,7 @@ public class TCKZonedDateTime extends AbstractDateTimeTest {
//-----------------------------------------------------------------------
// with(long,TemporalUnit)
//-----------------------------------------------------------------------
+ /* J2ObjC removed: Only "gregorian" and "julian" calendars are supported.
@DataProvider
public static Object[][] data_withFieldLong() {
return new Object[][] {
@@ -1350,22 +1351,25 @@ public class TCKZonedDateTime extends AbstractDateTimeTest {
{TEST_PARIS_OVERLAP_2008_10_26_02_30.atZone(ZONE_PARIS).withLaterOffsetAtOverlap(), OFFSET_SECONDS, 7200,
dateTime(2008, 10, 26, 2, 30, 0, 0, OFFSET_0200, ZONE_PARIS)},
};
- };
+ }; */
+ /* J2ObjC removed: Only "gregorian" and "julian" calendars are supported.
@Test()
@UseDataProvider("data_withFieldLong")
public void test_with_fieldLong(ZonedDateTime base, TemporalField setField, int setValue, ZonedDateTime expected) {
assertEquals(base.with(setField, setValue), expected);
- }
+ } */
+ /* J2ObjC removed: Only "gregorian" and "julian" calendars are supported.
@Test()
@UseDataProvider("data_withFieldLong")
public void test_with_adjuster_ensureZoneOffsetConsistent(ZonedDateTime base, TemporalField setField, int setValue, ZonedDateTime expected) {
if (setField == OFFSET_SECONDS) {
assertEquals(base.with(ZoneOffset.ofTotalSeconds(setValue)), expected);
}
- }
+ } */
+ /* J2ObjC removed: Only "gregorian" and "julian" calendars are supported.
@Test()
@UseDataProvider("data_withFieldLong")
public void test_with_adjuster_ensureOffsetDateTimeConsistent(ZonedDateTime base, TemporalField setField, int setValue, ZonedDateTime expected) {
@@ -1373,7 +1377,7 @@ public class TCKZonedDateTime extends AbstractDateTimeTest {
OffsetDateTime odt = base.toOffsetDateTime().with(setField, setValue);
assertEquals(base.with(odt), expected);
}
- }
+ } */
//-----------------------------------------------------------------------
// withYear()
