Skip to content

Commit

Permalink
Added to FileReceiverActivityTest empty & null string cases for inval…
Browse files Browse the repository at this point in the history
…idUrls
  • Loading branch information
jasonjyu committed Oct 20, 2024
1 parent 8be5333 commit 95c7ba6
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<>();
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 95c7ba6

Please sign in to comment.