1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

avoid overlapping time windows

This commit is contained in:
oblonski 2015-12-18 07:57:59 +01:00
parent d28471fbda
commit 06fa714ffd

View file

@ -0,0 +1,23 @@
package jsprit.core.problem.solution.route.activity;
import org.junit.Test;
/**
* Created by schroeder on 18/12/15.
*/
public class TimeWindowsImplTest {
@Test(expected = IllegalStateException.class)
public void overlappingTW_shouldThrowException(){
TimeWindowsImpl tws = new TimeWindowsImpl();
tws.add(TimeWindow.newInstance(50, 100));
tws.add(TimeWindow.newInstance(90,150));
}
@Test(expected = IllegalStateException.class)
public void overlappingTW2_shouldThrowException(){
TimeWindowsImpl tws = new TimeWindowsImpl();
tws.add(TimeWindow.newInstance(50, 100));
tws.add(TimeWindow.newInstance(40,150));
}
}