Skip to content

Commit d5aa980

Browse files
fix broken test
1 parent d616a3a commit d5aa980

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/test/java/com/mindee/input/LocalResponseV2Test.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ protected void assertLocalResponse(LocalResponse localResponse) {
3636
Assertions.assertEquals(this.signature, localResponse.getHmacSignature(this.secretKey));
3737
Assertions.assertTrue(localResponse.isValidHmacSignature(this.secretKey, this.signature));
3838
InferenceResponse response = localResponse.deserializeResponse(InferenceResponse.class);
39+
Assertions.assertNotNull(response);
40+
Assertions.assertNotNull(response.getInference());
3941
}
4042

4143
@Test
@@ -51,9 +53,6 @@ void loadDocument_withString_mustReturnValidLocalResponse() {
5153
Assertions.assertFalse(localResponse.isValidHmacSignature(
5254
this.secretKey, "invalid signature is invalid")
5355
);
54-
InferenceResponse response = localResponse.deserializeResponse(InferenceResponse.class);
55-
Assertions.assertNotNull(response);
56-
Assertions.assertNotNull(response.getInference());
5756
}
5857

5958
@Test

0 commit comments

Comments
 (0)