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