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

modified activities to deal with multiple cap-dims

This commit is contained in:
oblonski 2014-02-18 09:49:24 +01:00
parent c1919649c7
commit 1b3af07e45
18 changed files with 211 additions and 3 deletions

View file

@ -0,0 +1,5 @@
package jsprit.core.problem.solution.route.activity;
public class DefaultShipmentActivityFactoryTest {
}

View file

@ -0,0 +1,5 @@
package jsprit.core.problem.solution.route.activity;
public class DefaultTourActivityTest {
}

View file

@ -0,0 +1,5 @@
package jsprit.core.problem.solution.route.activity;
public class DeliverServiceTest {
}

View file

@ -0,0 +1,5 @@
package jsprit.core.problem.solution.route.activity;
public class DeliverShipmentTest {
}

View file

@ -0,0 +1,5 @@
package jsprit.core.problem.solution.route.activity;
public class EndTest {
}

View file

@ -0,0 +1,5 @@
package jsprit.core.problem.solution.route.activity;
public class PickupServiceTest {
}

View file

@ -0,0 +1,25 @@
package jsprit.core.problem.solution.route.activity;
import static org.junit.Assert.*;
import jsprit.core.problem.job.Shipment;
import org.junit.Test;
public class PickupShipmentTest {
@Test
public void whenGettingCapacity_itShouldReturnItCorrectly(){
Shipment shipment = Shipment.Builder.newInstance("s").setPickupLocation("pickLoc").setDeliveryLocation("delLoc")
.addCapacityDimension(0, 10).addCapacityDimension(1, 100).build();
PickupShipment pick = new PickupShipment(shipment);
assertEquals(10,pick.getCapacity().get(0));
assertEquals(100,pick.getCapacity().get(1));
}
@Test
public void whenCopyingAct_itShouldCopyItCorrectly(){
}
}

View file

@ -24,7 +24,7 @@ import jsprit.core.problem.solution.route.activity.ServiceActivity;
import org.junit.Test;
public class ServiceActTest {
public class ServiceActivityTest {
@Test
public void whenTwoDeliveriesHaveTheSameUnderlyingJob_theyAreEqual(){

View file

@ -0,0 +1,5 @@
package jsprit.core.problem.solution.route.activity;
public class StartTest {
}

View file

@ -0,0 +1,5 @@
package jsprit.core.problem.solution.route.activity;
public class TimeWindowTest {
}