Skip to content

Commit c242a6f

Browse files
add test
1 parent 5690117 commit c242a6f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/test/java/com/mindee/parsing/v2/InferenceTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ void asyncPredict_whenComplete_mustExposeAllProperties() throws IOException {
102102
InferenceFile file = inf.getFile();
103103
assertNotNull(file, "File must not be null");
104104
assertEquals("complete.jpg", file.getName(), "File name mismatch");
105+
assertEquals(1, file.getPageCount(), "Page count mismatch");
106+
assertEquals("image/jpeg", file.getMimeType(), "MIME type mismatch");
105107
assertNull(file.getAlias(), "File alias must be null for this payload");
106108

107109
InferenceFields fields = inf.getResult().getFields();

0 commit comments

Comments
 (0)