Skip to content

Commit

Permalink
fix tests using old params
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Nov 17, 2022
1 parent f78aa47 commit b935250
Showing 1 changed file with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1034,8 +1034,8 @@ public void getElementsLengthDensityGroupByBoundaryGroupByTagCsvTest() throws IO
// remainder , value 1 , ... , value N)
final double expectedValue = 3190.17;
String responseBody = getResponseBody("/elements/length/density/groupBy/boundary"
+ "/groupBy/tag?bboxes=b1:8.68086,49.39948,8.69401"
+ ",49.40609|b2:8.68081,49.39943,8.69408,49.40605&types=way&time=2017-10-08&keys=highway&"
+ "/groupBy/tag?bboxes=b1:8.68086,49.39948,8.69401,49.40609|"
+ "b2:8.68081,49.39943,8.69408,49.40605&time=2017-10-08&filter=type:way and highway=*&"
+ "groupByKey=highway&format=csv&groupByValues=residential,primary");
List<CSVRecord> records = Helper.getCsvRecords(responseBody);
assertEquals(1, Helper.getCsvRecords(responseBody).size());
Expand Down Expand Up @@ -1255,15 +1255,6 @@ public void ratioEmptyFilter2Test() {
assertEquals(400, response.getBody().get("status").asInt());
}

@Test
public void getElementsCountWrongFilterTypesCombinationTest() {
TestRestTemplate restTemplate = new TestRestTemplate();
ResponseEntity<JsonNode> response =
restTemplate.getForEntity(server + port + "/elements/count?bboxes=8.67452,49.40961,"
+ "8.70392,49.41823&time=2015-01-01&filter=building=*&types=way", JsonNode.class);
assertEquals(400, response.getBody().get("status").asInt());
}

@Test
public void getFilterTest() {
final double expectedValue = 585.48;
Expand Down

0 comments on commit b935250

Please sign in to comment.