@Test public void snackbarTestFromApplication() { final SnackbarActions snackbarActions = application.snackbar(); assertThat(snackbarActions).isEqualTo(application.appSnackbarActions); }
public static SnackbarActions snackbar(final Activity activity) { return ((PostsApplication) activity.getApplication()).snackbar(); }
PostsApplication extends Application { public static SnackbarActions snackbar(final Activity activity) { return ((PostsApplication) activity.getApplication()).snackbar(); } }
PostsApplication extends Application { public static SnackbarActions snackbar(final Activity activity) { return ((PostsApplication) activity.getApplication()).snackbar(); }  }
PostsApplication extends Application { public static SnackbarActions snackbar(final Activity activity) { return ((PostsApplication) activity.getApplication()).snackbar(); }  static ApplicationComponent getApplicationComponent(); static SnackbarActions snackbar(final Activity activity); @Override void onCreate(); Realm getDefaultRealmInstance(); SnackbarActions snackbar(); }
PostsApplication extends Application { public static SnackbarActions snackbar(final Activity activity) { return ((PostsApplication) activity.getApplication()).snackbar(); }  static ApplicationComponent getApplicationComponent(); static SnackbarActions snackbar(final Activity activity); @Override void onCreate(); Realm getDefaultRealmInstance(); SnackbarActions snackbar();  }