19202122232425
} @Test(expected = IllegalArgumentException.class) public void test_constructor_CountLessThanOne_invalid() { new TimeGrouper(new RelativeTime(1, TimeUnit.DAYS), 0); }
891011121314
{ @Test(expected = IllegalArgumentException.class) public void test_constructor_Zero_GroupCount_invalid() { new TimeGroupResult(new RelativeTime(1, TimeUnit.MILLISECONDS), 0, new GroupingNumber(2)); }
20212223242526
} @Test(expected = NullPointerException.class) public void test_constructor_null_GroupNumber_invalid() { new TimeGroupResult(new RelativeTime(1, TimeUnit.MILLISECONDS), 2, null); }