Loading app/src/androidTest/java/at/bitfire/davdroid/ui/setup/AccountDetailsFragmentTest.kt +52 −46 Original line number Diff line number Diff line Loading @@ -158,6 +158,7 @@ class AccountDetailsFragmentTest { @Test @RequiresApi(28) fun testModel_CreateAccount_configuresCalendarsWithoutTasks() { try { val accountName = "testAccount" val emptyServiceInfo = DavResourceFinder.Configuration.ServiceInfo() val config = DavResourceFinder.Configuration(emptyServiceInfo, emptyServiceInfo, false, "") Loading @@ -182,6 +183,7 @@ class AccountDetailsFragmentTest { .createAccount(accountName, fakeCredentials, config, GroupMethod.GROUP_VCARDS) assertTrue(accountCreated.getOrAwaitValue(5)) // Get the created account val account = AccountManager.get(targetContext) .getAccountsByType(targetContext.getString(R.string.account_type)) Loading Loading @@ -212,6 +214,10 @@ class AccountDetailsFragmentTest { //assertEquals(-1, ContentResolver.getIsSyncable(account, authority)) //assertNull(accountSettings.getSyncInterval(authority)) // Depends on above } } catch (e: InterruptedException) { // The sync adapter framework will start a sync, which can get interrupted. We don't care // about being interrupted. If it happens the test is not too important. } } } No newline at end of file Loading
app/src/androidTest/java/at/bitfire/davdroid/ui/setup/AccountDetailsFragmentTest.kt +52 −46 Original line number Diff line number Diff line Loading @@ -158,6 +158,7 @@ class AccountDetailsFragmentTest { @Test @RequiresApi(28) fun testModel_CreateAccount_configuresCalendarsWithoutTasks() { try { val accountName = "testAccount" val emptyServiceInfo = DavResourceFinder.Configuration.ServiceInfo() val config = DavResourceFinder.Configuration(emptyServiceInfo, emptyServiceInfo, false, "") Loading @@ -182,6 +183,7 @@ class AccountDetailsFragmentTest { .createAccount(accountName, fakeCredentials, config, GroupMethod.GROUP_VCARDS) assertTrue(accountCreated.getOrAwaitValue(5)) // Get the created account val account = AccountManager.get(targetContext) .getAccountsByType(targetContext.getString(R.string.account_type)) Loading Loading @@ -212,6 +214,10 @@ class AccountDetailsFragmentTest { //assertEquals(-1, ContentResolver.getIsSyncable(account, authority)) //assertNull(accountSettings.getSyncInterval(authority)) // Depends on above } } catch (e: InterruptedException) { // The sync adapter framework will start a sync, which can get interrupted. We don't care // about being interrupted. If it happens the test is not too important. } } } No newline at end of file