Skip to content

Commit

Permalink
Update migration.exchange API response sample JSON
Browse files Browse the repository at this point in the history
Co-authored-by: David LJ <mail@davidlj95.com>
  • Loading branch information
davidlj95 authored and seratch committed Jun 17, 2024
1 parent c47a50a commit 33645ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion json-logs/samples/api/migration.exchange.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@
"invalid_user_ids": [
""
],
"user_id_map": {}
"user_id_map": {
"0": "0",
"1": "1",
"2": "2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

public class MethodsResponseDumpTest {
// This test class generates sample JSON data for the Web APIs
Expand Down Expand Up @@ -82,7 +83,11 @@ public void views_publish() throws Exception {
public void migration_exchange() throws Exception {
MigrationExchangeResponse response = new MigrationExchangeResponse();
response.setInvalidUserIds(Arrays.asList(""));
response.setUserIdMap(new HashMap<>());
Map<String, String> userIdMap = new HashMap<>();
userIdMap.put("0", "0");
userIdMap.put("1", "1");
userIdMap.put("2", "2");
response.setUserIdMap(userIdMap);
ObjectInitializer.initProperties(response);
dumper.dump("migration.exchange", response);
}
Expand Down

0 comments on commit 33645ed

Please sign in to comment.