-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: adamczyk-HERE <[email protected]>
- Loading branch information
1 parent
cafe7b5
commit cdb38cb
Showing
3 changed files
with
52 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...ge-http/src/test/java/com/here/naksha/storage/http/connector/integration/IterateTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.here.naksha.storage.http.connector.integration; | ||
|
||
import io.restassured.response.Response; | ||
import org.junit.jupiter.api.BeforeEach; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.ValueSource; | ||
|
||
import java.util.List; | ||
import java.util.stream.IntStream; | ||
|
||
import static com.here.naksha.storage.http.connector.integration.Commons.*; | ||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
|
||
public class IterateTest { | ||
@BeforeEach | ||
void rmFeatures() { | ||
rmAllFeatures(); | ||
} | ||
|
||
@Test | ||
void test() { | ||
IntStream.rangeClosed(1,5).forEach( i -> | ||
createFromJsonFileFormatted("iterate/feature_template.json",String.valueOf(i) ) | ||
); | ||
|
||
String path = "iterate"; | ||
Response dhResponse = dataHub().get(path); | ||
Response nResponse = naksha().get(path); | ||
assertTrue(responseHasExactShortIds(List.of("1","2","3","4","5"), dhResponse)); | ||
assertTrue(responseHasExactShortIds(List.of("1","2","3","4","5"), nResponse)); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...esources/com/here/naksha/storage/http/connector/integration/iterate/feature_template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"id": "urn:here::here:landmark3d.Landmark3dPhotoreal:%s", | ||
"type": "Feature", | ||
"momType": "landmark3d.Landmark3dPhotoreal", | ||
"geometry": { | ||
"type": "MultiPolygon", | ||
"coordinates": [ | ||
[[[-3, -3, 0], [0, -3, 0], [0, 0, 0], [-3, 0, 0], [-3, -3, 0]]] | ||
] | ||
} | ||
} |