Skip to content

Commit 7c34727

Browse files
committed
modified Scenario file
1 parent 11c7314 commit 7c34727

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

javav2/example_code/location/src/main/java/com/example/location/scenario/LocationScenario.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ public static void main(String[] args) {
4343
deviceId - The ID of the device (e.g., "iPhone-112356").
4444
""";
4545

46-
//if (args.length != 7) {
47-
// logger.info(usage);
48-
// return;
49-
//}
50-
51-
String mapName = "MyMap43"; //args[0];
52-
String keyName = "MyLocationKey43"; //args[1];
53-
String collectionName = "AWSLocationCollection43"; //args[2];
54-
String geoId = "geoId43"; //args[4];
55-
String trackerName = "geoTracker43"; //args[5];
56-
String calculatorName = "AWSRouteCalc43"; //args[6];
57-
String deviceId = "iPhone-112359"; //args[7];
46+
if (args.length != 7) {
47+
logger.info(usage);
48+
return;
49+
}
50+
51+
String mapName = args[0];
52+
String keyName = args[1];
53+
String collectionName = args[2];
54+
String geoId = args[4];
55+
String trackerName = args[5];
56+
String calculatorName = args[6];
57+
String deviceId = args[7];
5858

5959
logger.info("""
6060
AWS Location Service is a fully managed service offered by Amazon Web Services (AWS) that

javav2/example_code/location/src/test/java/LocationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public void testCalcDistance() {
178178
}
179179

180180
@Tag("IntegrationTest")
181-
@Order(11)
181+
@Order(12)
182182
public void testGeoPlaces() {
183183

184184
assertDoesNotThrow(() -> {

0 commit comments

Comments
 (0)