@@ -166,22 +166,22 @@ public void test_Can_Post_Multiple_files_with_Request() {
166
166
);
167
167
168
168
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 ());
170
170
assertEquals ("RefId should match" , "zid" , response .getRefId ());
171
171
assertEquals ("Should have correct number of files" , 2 , response .getFiles ().size ());
172
172
173
173
// Verify first file
174
174
TestDtos .UploadInfo file1 = response .getFiles ().get (0 );
175
175
assertEquals ("First file name should match" , "audio" , file1 .getName ());
176
176
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 ());
178
178
assertEquals ("First file content type should match" , "text/plain" , file1 .getContentType ());
179
179
180
180
// Verify second file
181
181
TestDtos .UploadInfo file2 = response .getFiles ().get (1 );
182
182
assertEquals ("Second file name should match" , "content" , file2 .getName ());
183
183
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 ());
185
185
assertEquals ("Second file content type should match" , "text/markdown" , file2 .getContentType ());
186
186
187
187
} catch (Exception e ) {
0 commit comments