Skip to content

Commit

Permalink
Added: Add empty and null strings tests for invalid urls to `FileRece…
Browse files Browse the repository at this point in the history
…iverActivityTest`
  • Loading branch information
jasonjyu authored and agnostic-apollo committed Oct 28, 2024
1 parent 8be5333 commit b84dc70
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public void testIsSharedTextAnUrl() {

List<String> invalidUrls = new ArrayList<>();

This comment has been minimized.

Copy link
@MUNNA-BHAI-007
invalidUrls.add("a test with example.com");
invalidUrls.add("");
invalidUrls.add(null);
for (String url : invalidUrls) {
Assert.assertFalse(FileReceiverActivity.isSharedTextAnUrl(url));
}
Expand Down

0 comments on commit b84dc70

Please sign in to comment.