use of java.time.OffsetTime in project jdk8u_jdk by JetBrains.
the class TCKOffsetTime method test_isBefore_null.
@Test(expectedExceptions = NullPointerException.class)
public void test_isBefore_null() {
OffsetTime a = OffsetTime.of(11, 30, 59, 0, OFFSET_PONE);
a.isBefore(null);
}
use of java.time.OffsetTime in project jdk8u_jdk by JetBrains.
the class TCKOffsetTime method test_compareTo_null.
@Test(expectedExceptions = NullPointerException.class)
public void test_compareTo_null() {
OffsetTime a = OffsetTime.of(11, 30, 59, 0, OFFSET_PONE);
a.compareTo(null);
}
use of java.time.OffsetTime in project jdk8u_jdk by JetBrains.
the class TCKOffsetTime method test_withMinute_normal.
//-----------------------------------------------------------------------
// withMinute()
//-----------------------------------------------------------------------
@Test
public void test_withMinute_normal() {
OffsetTime base = OffsetTime.of(11, 30, 59, 0, OFFSET_PONE);
OffsetTime test = base.withMinute(15);
assertEquals(test, OffsetTime.of(11, 15, 59, 0, OFFSET_PONE));
}
use of java.time.OffsetTime in project jdk8u_jdk by JetBrains.
the class TCKOffsetTime method test_plusSeconds_zero.
@Test
public void test_plusSeconds_zero() {
OffsetTime base = OffsetTime.of(11, 30, 59, 0, OFFSET_PONE);
OffsetTime test = base.plusSeconds(0);
assertEquals(test, base);
}
use of java.time.OffsetTime in project jdk8u_jdk by JetBrains.
the class TCKOffsetTime method test_withOffsetSameInstant_noChange.
@Test
public void test_withOffsetSameInstant_noChange() {
OffsetTime base = OffsetTime.of(11, 30, 59, 0, OFFSET_PONE);
OffsetTime test = base.withOffsetSameInstant(OFFSET_PONE);
assertEquals(test, base);
}
Aggregations