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());
}
Aggregations