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

adjusted unit-test

This commit is contained in:
oblonski 2014-04-25 23:36:47 +02:00
parent 6429b500d0
commit 3a72078133

View file

@ -45,9 +45,9 @@ public class ReaderTest {
@Test @Test
public void testRead_ifReaderIsCalled_itReadsSuccessfullyV2(){ public void testRead_ifReaderIsCalled_itReadsSuccessfullyV2(){
Builder vrpBuilder = VehicleRoutingProblem.Builder.newInstance(); Builder vrpBuilder = VehicleRoutingProblem.Builder.newInstance();
VehicleRoutingProblem vrp = vrpBuilder.build();
ArrayList<VehicleRoutingProblemSolution> solutions = new ArrayList<VehicleRoutingProblemSolution>(); ArrayList<VehicleRoutingProblemSolution> solutions = new ArrayList<VehicleRoutingProblemSolution>();
new VrpXMLReader(vrpBuilder, solutions).read("src/test/resources/finiteVrpWithShipmentsAndSolution.xml"); new VrpXMLReader(vrpBuilder, solutions).read("src/test/resources/finiteVrpWithShipmentsAndSolution.xml");
VehicleRoutingProblem vrp = vrpBuilder.build();
assertEquals(3,vrp.getJobs().size()); assertEquals(3,vrp.getJobs().size());
assertEquals(1,solutions.size()); assertEquals(1,solutions.size());