mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-05 10:15:34 +08:00
Added: Add empty and null strings tests for invalid urls to FileReceiverActivityTest
This commit is contained in:
committed by
agnostic-apollo
parent
8be53336c3
commit
b84dc703e8
@@ -26,6 +26,8 @@ public class FileReceiverActivityTest {
|
||||
|
||||
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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user