NonOverlapingIntervalsTest 2nd
This commit is contained in:
parent
cc436a09d9
commit
f8c9fac7b1
2 changed files with 16 additions and 7 deletions
|
@ -46,4 +46,13 @@ public class NonOverapingIntervalsTest {
|
|||
Assert.assertEquals(null, list.getValueByInterval(startDate + T.hours(10).msecs() + 1));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCopyConstructor() {
|
||||
list.reset();
|
||||
list.add(new TemporaryBasal().date(startDate).duration((int) T.hours(10).mins()).absolute(1));
|
||||
NonOverlappingIntervals<TemporaryBasal> list2 = new NonOverlappingIntervals<>(list);
|
||||
Assert.assertEquals(1, list2.getList().size());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue