Ejemplo n.º 1
0
 @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);
 }
Ejemplo n.º 2
0
 @Test
 public void newInstance_shouldReturnInstanceOfRoutePreviewFragment() throws Exception {
   assertThat(RoutePreviewFragment.newInstance(activity, destination))
       .isInstanceOf(RoutePreviewFragment.class);
 }