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:
parent
d28471fbda
commit
06fa714ffd
1 changed files with 23 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue