Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 61ee5aa

Browse files
theScrabiabelgardep
authored andcommitted
add test from redirect from http to http
1 parent 950d3a5 commit 61ee5aa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

owncloudComLibrary/src/test/java/com/owncloud/android/lib/StatusRequestorTest.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ class StatusRequestorTest {
8383
true, SECURE_DOMAIN, SECURE_DOMAIN))
8484
}
8585

86+
@Test
87+
fun `check redirect to unsecure connection - ok - from http to http`() {
88+
assertFalse(requester.isRedirectedToNonSecureConnection(
89+
false, UNSECURE_DOMAIN, UNSECURE_DOMAIN))
90+
}
91+
8692
companion object {
8793
const val TEST_DOMAIN = "https://cloud.somewhere.com"
8894
const val SUB_PATH = "/subdir"

0 commit comments

Comments
 (0)