Skip to content

Commit

Permalink
fixed #291
Browse files Browse the repository at this point in the history
added test
  • Loading branch information
Julian Psotta committed Nov 21, 2018
1 parent eebc6bd commit 21aa7d4
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package heigit.ors.routing;

import com.vividsolutions.jts.geom.Polygon;
import heigit.ors.exceptions.ParameterValueException;
import heigit.ors.routing.graphhopper.extensions.HeavyVehicleAttributes;
import heigit.ors.routing.parameters.VehicleParameters;
import heigit.ors.routing.pathprocessors.BordersExtractor;
Expand All @@ -9,6 +10,13 @@

public class RouteSearchParametersTest {

@Test(expected = ParameterValueException.class)
public void expectFailingProfileParamsWithVehicleProfile() throws Exception {
RouteSearchParameters routeSearchParameters = new RouteSearchParameters();
routeSearchParameters.setProfileType(1);
routeSearchParameters.setOptions("{\"profile_params\":{\"weightings\":{\"green\":{\"factor\":0.8}}}}");
}

@Test
public void getProfileType() {
RouteSearchParameters routeSearchParameters = new RouteSearchParameters();
Expand Down

0 comments on commit 21aa7d4

Please sign in to comment.