Home
last modified time | relevance | path

Searched refs:MockSimplePeriod (Results 1 – 11 of 11) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/
DMockSimplePeriod.java76 public final class MockSimplePeriod class
77 implements TemporalAmount, Comparable<MockSimplePeriod> {
82 public static final MockSimplePeriod ZERO_DAYS = new MockSimplePeriod(0, DAYS);
86 public static final MockSimplePeriod ZERO_SECONDS = new MockSimplePeriod(0, SECONDS);
107 public static MockSimplePeriod of(long amount, TemporalUnit unit) { in of()
108 return new MockSimplePeriod(amount, unit); in of()
111 private MockSimplePeriod(long amount, TemporalUnit unit) { in MockSimplePeriod() method in MockSimplePeriod
152 public int compareTo(MockSimplePeriod otherPeriod) { in compareTo()
164 if (obj instanceof MockSimplePeriod) { in equals()
165 MockSimplePeriod other = (MockSimplePeriod) obj; in equals()
DTCKLocalDate.java127 import test.java.time.MockSimplePeriod;
971 MockSimplePeriod period = MockSimplePeriod.of(7, ChronoUnit.MONTHS);
978 MockSimplePeriod period = MockSimplePeriod.of(-25, ChronoUnit.DAYS);
985 MockSimplePeriod period = MockSimplePeriod.of(7, ChronoUnit.HOURS);
991 TEST_2007_07_15.plus((MockSimplePeriod) null);
996 MockSimplePeriod period = MockSimplePeriod.of(1, ChronoUnit.YEARS);
1002 MockSimplePeriod period = MockSimplePeriod.of(-1, ChronoUnit.YEARS);
1331 MockSimplePeriod period = MockSimplePeriod.of(7, ChronoUnit.MONTHS);
1338 MockSimplePeriod period = MockSimplePeriod.of(-25, ChronoUnit.DAYS);
1345 MockSimplePeriod period = MockSimplePeriod.of(7, ChronoUnit.HOURS);
[all …]
DTCKInstant.java675 {DAYS, MockSimplePeriod.of(1, DAYS), 86401, 0},
676 {HOURS, MockSimplePeriod.of(2, HOURS), 7201, 0},
677 {MINUTES, MockSimplePeriod.of(4, MINUTES), 241, 0},
678 {SECONDS, MockSimplePeriod.of(5, SECONDS), 6, 0},
679 {NANOS, MockSimplePeriod.of(6, NANOS), 1, 6},
680 {DAYS, MockSimplePeriod.of(10, DAYS), 864001, 0},
681 {HOURS, MockSimplePeriod.of(11, HOURS), 39601, 0},
682 {MINUTES, MockSimplePeriod.of(12, MINUTES), 721, 0},
683 {SECONDS, MockSimplePeriod.of(13, SECONDS), 14, 0},
684 {NANOS, MockSimplePeriod.of(14, NANOS), 1, 14},
[all …]
DTCKLocalDateTime.java1381 MockSimplePeriod period = MockSimplePeriod.of(7, MONTHS);
1388 MockSimplePeriod period = MockSimplePeriod.of(-25, DAYS);
1395 MockSimplePeriod period = MockSimplePeriod.of(1, YEARS);
1401 MockSimplePeriod period = MockSimplePeriod.of(-1, YEARS);
2070 MockSimplePeriod period = MockSimplePeriod.of(7, MONTHS);
2077 MockSimplePeriod period = MockSimplePeriod.of(-25, DAYS);
2084 MockSimplePeriod period = MockSimplePeriod.of(-1, YEARS);
2090 MockSimplePeriod period = MockSimplePeriod.of(1, YEARS);
DTCKOffsetTime.java128 import test.java.time.MockSimplePeriod;
888 MockSimplePeriod period = MockSimplePeriod.of(7, ChronoUnit.MINUTES);
895 OffsetTime t = TEST_11_30_59_500_PONE.plus(MockSimplePeriod.of(0, SECONDS));
983 MockSimplePeriod period = MockSimplePeriod.of(7, ChronoUnit.MINUTES);
990 OffsetTime t = TEST_11_30_59_500_PONE.minus(MockSimplePeriod.of(0, SECONDS));
DTCKZonedDateTime.java1631 assertEquals(base.plus(MockSimplePeriod.of(amount, HOURS)), expected);
1641 MockSimplePeriod period = MockSimplePeriod.of(7, ChronoUnit.MONTHS);
1657 ZonedDateTime t = TEST_DATE_TIME.plus(MockSimplePeriod.ZERO_DAYS);
1836 assertEquals(base.minus(MockSimplePeriod.of(-amount, HOURS)), expected);
1846 MockSimplePeriod period = MockSimplePeriod.of(7, ChronoUnit.MONTHS);
1862 ZonedDateTime t = TEST_DATE_TIME.minus(MockSimplePeriod.ZERO_DAYS);
DTCKOffsetDateTime.java145 import test.java.time.MockSimplePeriod;
926 MockSimplePeriod period = MockSimplePeriod.of(7, ChronoUnit.MONTHS);
1037 MockSimplePeriod period = MockSimplePeriod.of(7, ChronoUnit.MONTHS);
/libcore/ojluni/src/test/java/time/test/java/time/
DMockSimplePeriod.java76 public final class MockSimplePeriod class
77 implements TemporalAmount, Comparable<MockSimplePeriod> {
82 public static final MockSimplePeriod ZERO_DAYS = new MockSimplePeriod(0, DAYS);
86 public static final MockSimplePeriod ZERO_SECONDS = new MockSimplePeriod(0, SECONDS);
107 public static MockSimplePeriod of(long amount, TemporalUnit unit) { in of()
108 return new MockSimplePeriod(amount, unit); in of()
111 private MockSimplePeriod(long amount, TemporalUnit unit) { in MockSimplePeriod() method in MockSimplePeriod
152 public int compareTo(MockSimplePeriod otherPeriod) { in compareTo()
164 if (obj instanceof MockSimplePeriod) { in equals()
165 MockSimplePeriod other = (MockSimplePeriod) obj; in equals()
DTestOffsetDateTime.java202 OffsetDateTime t = TEST_2008_6_30_11_30_59_000000500.plus(MockSimplePeriod.ZERO_DAYS); in test_plus_Period_zero()
263 OffsetDateTime t = TEST_2008_6_30_11_30_59_000000500.minus(MockSimplePeriod.ZERO_DAYS); in test_minus_Period_zero()
DTestLocalDate.java152 LocalDate t = TEST_2007_07_15.plus(MockSimplePeriod.ZERO_DAYS); in test_plus_Period_zero()
280 LocalDate t = TEST_2007_07_15.minus(MockSimplePeriod.ZERO_DAYS); in test_minus_Period_zero()
DTestLocalDateTime.java230 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plus(MockSimplePeriod.ZERO_DAYS); in test_plus_Period_zero()
362 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minus(MockSimplePeriod.ZERO_DAYS); in test_minus_Period_zero()