@Before public void setup() throws Exception { ((TestMapzenApplication) Robolectric.application).inject(this); MockitoAnnotations.initMocks(this); activity = initBaseActivity(); activity.disableActionbar(); destination = getTestSimpleFeature(); fragment = RoutePreviewFragment.newInstance(activity, destination); TestHelper.startFragment(fragment, activity); }
@Test public void newInstance_shouldReturnInstanceOfRoutePreviewFragment() throws Exception { assertThat(RoutePreviewFragment.newInstance(activity, destination)) .isInstanceOf(RoutePreviewFragment.class); }