use of java.time.Period in project j2objc by google.
the class TCKPeriod method test_equals_otherClass.
public void test_equals_otherClass() {
Period test = Period.of(1, 2, 3);
assertEquals(test.equals(""), false);
}
use of java.time.Period in project j2objc by google.
the class TCKPeriod method test_normalized_min.
@Test(expected = ArithmeticException.class)
public void test_normalized_min() {
Period base = Period.of(Integer.MIN_VALUE, -12, 0);
base.normalized();
}
use of java.time.Period in project j2objc by google.
the class TCKPeriod method test_plusMonths_overflowTooBig.
@Test(expected = ArithmeticException.class)
public void test_plusMonths_overflowTooBig() {
Period test = Period.ofMonths(Integer.MAX_VALUE);
test.plusMonths(1);
}
use of java.time.Period in project j2objc by google.
the class TCKPeriod method test_multipliedBy_overflowTooSmall.
@Test(expected = ArithmeticException.class)
public void test_multipliedBy_overflowTooSmall() {
Period test = Period.ofYears(Integer.MIN_VALUE / 2 - 1);
test.multipliedBy(2);
}
use of java.time.Period in project j2objc by google.
the class TCKPeriod method test_plusDays_overflowTooSmall.
@Test(expected = ArithmeticException.class)
public void test_plusDays_overflowTooSmall() {
Period test = Period.ofDays(Integer.MIN_VALUE);
test.plusDays(-1);
}
Aggregations