@@ -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