Răsfoiți Sursa

Account cannot be null so test is removed

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 an în urmă
părinte
comite
fb9e2e0ef2

+ 0 - 12
app/src/test/java/com/nextcloud/client/mixins/SessionMixinTest.kt

@@ -9,7 +9,6 @@ package com.nextcloud.client.mixins
 
 import android.app.Activity
 import com.nextcloud.client.account.UserAccountManager
-import junit.framework.Assert.assertNull
 import org.junit.Before
 import org.junit.Test
 import org.mockito.Mock
@@ -50,15 +49,4 @@ class SessionMixinTest {
         //      account manager receives parent activity
         verify(userAccountManager).startAccountCreation(same(activity))
     }
-
-    @Test
-    fun `trigger accountCreation on resume when currentAccount is null`() {
-        // WHEN
-        //      start onResume and currentAccount is null
-        assertNull(session.currentAccount)
-        session.onResume()
-        // THEN
-        //      accountCreation flow is started
-        verify(session).startAccountCreation()
-    }
 }