Skip to content

Commit

Permalink
Updated assertion to match encoded params
Browse files Browse the repository at this point in the history
  • Loading branch information
hahmed-dev committed Oct 12, 2023
1 parent fe4cf07 commit 4262678
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public void localeDownloadTest() throws ApiException, IOException, InterruptedEx
Assert.assertEquals("Correct file contents", fileContents, body);

RecordedRequest recordedRequest = mockBackend.takeRequest();
Assert.assertEquals("Request path", "//projects/MY_PROJECT_ID/locales/MY_ID/download?format_options[omit_separator_space]=true&format_options[fallback_language]=en", recordedRequest.getPath());
Assert.assertEquals("Request path", "//projects/MY_PROJECT_ID/locales/MY_ID/download?format_options%5Bomit_separator_space%5D=true&format_options%5Bfallback_language%5D=en", recordedRequest.getPath());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,6 @@ public class ApiClient {
Map<String, String> mappedParameter = (Map<String, String>) parameter;
for(Map.Entry<String, String> entry : mappedParameter.entrySet()){
System.out.println(entry);
{{! String key = builder.append(name).append("[").append(entry.getKey()).append("]"); }}
String key = name + "[" + entry.getKey() + "]";
String value = entry.getValue();
Expand Down

0 comments on commit 4262678

Please sign in to comment.