Skip to content

Commit 517c347

Browse files
committed
Fix build
1 parent a0b82a7 commit 517c347

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AndroidClient/client/src/test/java/net/servicestack/client/JsonServiceClientTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,22 +166,22 @@ public void test_Can_Post_Multiple_files_with_Request() {
166166
);
167167

168168
assertNotNull("Response should not be null", response);
169-
assertEquals("Id should match", Optional.of(1), response.getId());
169+
assertEquals("Id should match", 1, (int)response.getId());
170170
assertEquals("RefId should match", "zid", response.getRefId());
171171
assertEquals("Should have correct number of files", 2, response.getFiles().size());
172172

173173
// Verify first file
174174
TestDtos.UploadInfo file1 = response.getFiles().get(0);
175175
assertEquals("First file name should match", "audio", file1.getName());
176176
assertEquals("First filename should match", "test.txt", file1.getFileName());
177-
assertEquals("First file content length should match", Optional.of("Hello World".length()), file1.getContentLength());
177+
assertEquals("First file content length should match", "Hello World".length(), (long)file1.getContentLength());
178178
assertEquals("First file content type should match", "text/plain", file1.getContentType());
179179

180180
// Verify second file
181181
TestDtos.UploadInfo file2 = response.getFiles().get(1);
182182
assertEquals("Second file name should match", "content", file2.getName());
183183
assertEquals("Second filename should match", "test.md", file2.getFileName());
184-
assertEquals("Second file content length should match", Optional.of("## Heading".length()), file2.getContentLength());
184+
assertEquals("Second file content length should match", "## Heading".length(), (long)file2.getContentLength());
185185
assertEquals("Second file content type should match", "text/markdown", file2.getContentType());
186186

187187
} catch (Exception e) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy