Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed: updated FileReceiverActivityTest to include empty & null str…
Browse files Browse the repository at this point in the history
…ings for invalidUrls to cover corner cases
jasonjyu committed Oct 20, 2024
1 parent 8be5333 commit bdd0abb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -26,6 +26,8 @@ public void testIsSharedTextAnUrl() {

List<String> invalidUrls = new ArrayList<>();
invalidUrls.add("a test with example.com");
invalidUrls.add("");
invalidUrls.add(null);
for (String url : invalidUrls) {
Assert.assertFalse(FileReceiverActivity.isSharedTextAnUrl(url));
}

0 comments on commit bdd0abb

Please sign in to comment.