You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tasks/app/src/androidTest/java/org/tasks/caldav/CaldavClientTest.kt

18 lines
601 B
Kotlin

package org.tasks.caldav
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.tasks.TestUtilities.newPreferences
@RunWith(AndroidJUnit4::class)
class CaldavClientTest {
@Test
fun dontCrashOnSpaceInUrl() {
val context = ApplicationProvider.getApplicationContext<Context>()
CaldavClient(context, null, newPreferences(context), null)
.forUrl("https://example.com/remote.php/a space/", "username", "password")
}
}