Search in sources :

Example 21 with GoogleApiAvailability

use of com.google.android.gms.common.GoogleApiAvailability in project robolectric by robolectric.

the class ShadowGoogleApiAvailabilityTest method getInstance.

@Test
public void getInstance() {
    //Given the expected GoogleApiAvailability instance
    final GoogleApiAvailability expected = GoogleApiAvailability.getInstance();
    //When getting the actual one from the shadow
    final GoogleApiAvailability actual = ShadowGoogleApiAvailability.getInstance();
    //Then verify that the expected is a not null and equal to the actual one
    assertThat(expected).isNotNull().isEqualTo(actual);
}
Also used : GoogleApiAvailability(com.google.android.gms.common.GoogleApiAvailability) Test(org.junit.Test)

Aggregations

GoogleApiAvailability (com.google.android.gms.common.GoogleApiAvailability)21 Dialog (android.app.Dialog)1 DialogInterface (android.content.DialogInterface)1 Test (org.junit.Test)1