Search in sources :

Example 11 with OtrClient

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

the class SingleOtrClientFragmentTest method launchFragmentWithParameters_shouldDisplayOtherOtrClient.

@Test
public void launchFragmentWithParameters_shouldDisplayOtherOtrClient() {
    User mockUser = mock(User.class);
    OtrClient mockOtrClient = mock(OtrClient.class);
    setupMocksForOtherOtrClient(mockUser, mockOtrClient);
    attachFragment(SingleOtrClientFragment.newInstance(mockOtrClient, mockUser), SingleOtrClientFragment.TAG);
    onView(withId(R.id.os__single_otr_client__verify)).check(isVisible());
    onView(withId(R.id.gtv__single_otr_client__back)).check(isVisible());
    onView(withId(R.id.ttv__single_otr_client__my_fingerprint)).check(isVisible());
    onView(withId(R.id.gtv__single_otr_client__close)).check(isGone());
    onView(withId(R.id.ttv__single_otr_client__my_devices)).check(isGone());
}
Also used : User(com.waz.api.User) OtrClient(com.waz.api.OtrClient) FragmentTest(com.waz.zclient.testutils.FragmentTest) Test(org.junit.Test)

Aggregations

OtrClient (com.waz.api.OtrClient)11 User (com.waz.api.User)8 FragmentTest (com.waz.zclient.testutils.FragmentTest)5 Test (org.junit.Test)5 Preference (android.support.v7.preference.Preference)2 PreferenceGroup (android.support.v7.preference.PreferenceGroup)2 PreferenceManager (android.support.v7.preference.PreferenceManager)2 PreferenceScreen (android.support.v7.preference.PreferenceScreen)2 Self (com.waz.api.Self)2 SuppressLint (android.annotation.SuppressLint)1 ActionMenuView (android.support.v7.widget.ActionMenuView)1 View (android.view.View)1 AbsListView (android.widget.AbsListView)1 TextView (android.widget.TextView)1 Fingerprint (com.waz.api.Fingerprint)1 IConversation (com.waz.api.IConversation)1 InitListener (com.waz.api.InitListener)1 Message (com.waz.api.Message)1 Subscriber (com.waz.api.Subscriber)1 ZMessagingApi (com.waz.api.ZMessagingApi)1