mirror of https://github.com/tasks/tasks
Fix test
parent
9b1e1acc60
commit
37887e6ce2
@ -1,13 +1,18 @@
|
||||
package org.tasks.caldav;
|
||||
|
||||
import androidx.test.runner.AndroidJUnit4;
|
||||
import static androidx.test.InstrumentationRegistry.getTargetContext;
|
||||
import static org.tasks.injection.TestModule.newPreferences;
|
||||
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class CaldavClientTest {
|
||||
|
||||
@Test
|
||||
public void dontCrashOnSpaceInUrl() {
|
||||
new CaldavClient("https://example.com/remote.php/a space/", "username", "password");
|
||||
new CaldavClient(null, newPreferences(getTargetContext()), null)
|
||||
.forUrl("https://example.com/remote.php/a space/", "username", "password");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue