Search in sources :

Example 6 with Fingerprint

use of com.waz.api.Fingerprint in project wire-android by wireapp.

the class SingleOtrClientFragmentTest method launchFragmentWithoutParameters_shouldDisplayCurrentOtrClient.

@Test
public void launchFragmentWithoutParameters_shouldDisplayCurrentOtrClient() {
    Self mockSelf = mock(Self.class);
    Fingerprint mockFingerprint = mock(Fingerprint.class);
    setupMocksForCurrentOtrClient(mockSelf, mockFingerprint);
    attachFragment(SingleOtrClientFragment.newInstance(), SingleOtrClientFragment.TAG);
    onView(withId(R.id.os__single_otr_client__verify)).check(isGone());
    onView(withId(R.id.gtv__single_otr_client__back)).check(isGone());
    onView(withId(R.id.ttv__single_otr_client__my_fingerprint)).check(isGone());
    onView(withId(R.id.gtv__single_otr_client__close)).check(isVisible());
    onView(withId(R.id.ttv__single_otr_client__my_devices)).check(isVisible());
}
Also used : Fingerprint(com.waz.api.Fingerprint) Self(com.waz.api.Self) FragmentTest(com.waz.zclient.testutils.FragmentTest) Test(org.junit.Test)

Aggregations

Fingerprint (com.waz.api.Fingerprint)6 Self (com.waz.api.Self)3 FragmentTest (com.waz.zclient.testutils.FragmentTest)3 Test (org.junit.Test)3 Preference (android.support.v7.preference.Preference)1 PreferenceScreen (android.support.v7.preference.PreferenceScreen)1 NetworkMode (com.waz.api.NetworkMode)1 OtrClient (com.waz.api.OtrClient)1 Subscriber (com.waz.api.Subscriber)1 User (com.waz.api.User)1 ZMessagingApi (com.waz.api.ZMessagingApi)1 IZMessagingApiStore (com.waz.zclient.core.stores.api.IZMessagingApiStore)1 NetworkAction (com.waz.zclient.core.stores.network.NetworkAction)1 IProfileStore (com.waz.zclient.core.stores.profile.IProfileStore)1 PreferenceCategory (net.xpece.android.support.preference.PreferenceCategory)1 SwitchPreference (net.xpece.android.support.preference.SwitchPreference)1