Skip to content

Commit 33645ed

Browse files
davidlj95seratch
authored andcommitted
Update migration.exchange API response sample JSON
Co-authored-by: David LJ <[email protected]>
1 parent c47a50a commit 33645ed

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

json-logs/samples/api/migration.exchange.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@
99
"invalid_user_ids": [
1010
""
1111
],
12-
"user_id_map": {}
12+
"user_id_map": {
13+
"0": "0",
14+
"1": "1",
15+
"2": "2"
16+
}
1317
}

slack-api-client/src/test/java/test_locally/sample_json_generation/MethodsResponseDumpTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
import java.util.Arrays;
2626
import java.util.HashMap;
27+
import java.util.Map;
2728

2829
public class MethodsResponseDumpTest {
2930
// This test class generates sample JSON data for the Web APIs
@@ -82,7 +83,11 @@ public void views_publish() throws Exception {
8283
public void migration_exchange() throws Exception {
8384
MigrationExchangeResponse response = new MigrationExchangeResponse();
8485
response.setInvalidUserIds(Arrays.asList(""));
85-
response.setUserIdMap(new HashMap<>());
86+
Map<String, String> userIdMap = new HashMap<>();
87+
userIdMap.put("0", "0");
88+
userIdMap.put("1", "1");
89+
userIdMap.put("2", "2");
90+
response.setUserIdMap(userIdMap);
8691
ObjectInitializer.initProperties(response);
8792
dumper.dump("migration.exchange", response);
8893
}

0 commit comments

Comments
 (0)