p = p.omit(TimeUnit.YEAR);
assertFalse(null, p.isSet(TimeUnit.YEAR));
}
public void testMoreLessThan() {
Period p = Period.moreThan(1, TimeUnit.YEAR);
assertTrue(null, p.isMoreThan());
assertFalse(null, p.isLessThan());
p = p.at();
assertFalse(null, p.isMoreThan());
assertFalse(null, p.isLessThan());
p = p.lessThan();
assertFalse(null, p.isMoreThan());
assertTrue(null, p.isLessThan());
p = p.moreThan();
assertTrue(null, p.isMoreThan());
assertFalse(null, p.isLessThan());
p = Period.lessThan(1, TimeUnit.YEAR);
assertFalse(null, p.isMoreThan());
assertTrue(null, p.isLessThan());
p = Period.at(1, TimeUnit.YEAR);
assertFalse(null, p.isMoreThan());
assertFalse(null, p.isLessThan());
assertEquals(null, 1f, p.getCount(TimeUnit.YEAR), .1f);
}