Skip to content

Commit b935250

Browse files
committed
fix tests using old params
1 parent f78aa47 commit b935250

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/test/java/org/heigit/ohsome/ohsomeapi/controller/GetControllerTest.java

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,8 +1034,8 @@ public void getElementsLengthDensityGroupByBoundaryGroupByTagCsvTest() throws IO
10341034
// remainder , value 1 , ... , value N)
10351035
final double expectedValue = 3190.17;
10361036
String responseBody = getResponseBody("/elements/length/density/groupBy/boundary"
1037-
+ "/groupBy/tag?bboxes=b1:8.68086,49.39948,8.69401"
1038-
+ ",49.40609|b2:8.68081,49.39943,8.69408,49.40605&types=way&time=2017-10-08&keys=highway&"
1037+
+ "/groupBy/tag?bboxes=b1:8.68086,49.39948,8.69401,49.40609|"
1038+
+ "b2:8.68081,49.39943,8.69408,49.40605&time=2017-10-08&filter=type:way and highway=*&"
10391039
+ "groupByKey=highway&format=csv&groupByValues=residential,primary");
10401040
List<CSVRecord> records = Helper.getCsvRecords(responseBody);
10411041
assertEquals(1, Helper.getCsvRecords(responseBody).size());
@@ -1255,15 +1255,6 @@ public void ratioEmptyFilter2Test() {
12551255
assertEquals(400, response.getBody().get("status").asInt());
12561256
}
12571257

1258-
@Test
1259-
public void getElementsCountWrongFilterTypesCombinationTest() {
1260-
TestRestTemplate restTemplate = new TestRestTemplate();
1261-
ResponseEntity<JsonNode> response =
1262-
restTemplate.getForEntity(server + port + "/elements/count?bboxes=8.67452,49.40961,"
1263-
+ "8.70392,49.41823&time=2015-01-01&filter=building=*&types=way", JsonNode.class);
1264-
assertEquals(400, response.getBody().get("status").asInt());
1265-
}
1266-
12671258
@Test
12681259
public void getFilterTest() {
12691260
final double expectedValue = 585.48;

0 commit comments

Comments
 (0)