Skip to content

Commit 65a431f

Browse files
author
Sam Wierema
committed
Fix broken Verify test
1 parent cd3251c commit 65a431f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

api/src/test/java/com/messagebird/MessageBirdClientTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,10 +375,9 @@ public void testDeleteVerifyToken() throws UnauthorizedException, GeneralExcepti
375375
assertFalse("href is empty", verify.getHref().isEmpty());
376376
try {
377377
messageBirdClient.deleteVerifyObject(verify.getId());
378-
} catch (GeneralException e) {
379-
// We can't delete verify object in test but atleast we tested json object parsing
380-
// we expect only one error about token and nothing else
381-
// assertTrue(e.getErrors().size() == 1);
378+
} catch (NotFoundException e) {
379+
// We expect it to be "Not found" as a test key doesn't create
380+
// an object in the API.
382381
}
383382
}
384383
}

0 commit comments

Comments
 (0)