use of java.time.OffsetDateTime in project jdk8u_jdk by JetBrains.
the class TestOffsetDateTime method test_minusHours_zero.
@Test
public void test_minusHours_zero() {
OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE);
OffsetDateTime test = base.minusHours(0);
assertSame(test, base);
}
use of java.time.OffsetDateTime in project jdk8u_jdk by JetBrains.
the class TestOffsetDateTime method test_withMonth_noChange.
@Test
public void test_withMonth_noChange() {
OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE);
OffsetDateTime test = base.withMonth(6);
assertSame(test, base);
}
use of java.time.OffsetDateTime in project jdk8u_jdk by JetBrains.
the class TestOffsetDateTime method test_plusHours_zero.
@Test
public void test_plusHours_zero() {
OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE);
OffsetDateTime test = base.plusHours(0);
assertSame(test, base);
}
use of java.time.OffsetDateTime in project jdk8u_jdk by JetBrains.
the class TestOffsetDateTime method test_plusWeeks_zero.
@Test
public void test_plusWeeks_zero() {
OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE);
OffsetDateTime test = base.plusWeeks(0);
assertSame(test, base);
}
use of java.time.OffsetDateTime in project jdk8u_jdk by JetBrains.
the class TestOffsetDateTime method test_withDayOfMonth_noChange.
@Test
public void test_withDayOfMonth_noChange() {
OffsetDateTime base = OffsetDateTime.of(LocalDate.of(2008, 6, 30), LocalTime.of(11, 30, 59), OFFSET_PONE);
OffsetDateTime test = base.withDayOfMonth(30);
assertSame(test, base);
}
Aggregations