use of android.app.TabActivity in project robolectric by robolectric.
the class ShadowTabActivityTest method tabActivityShouldNotMakeNewTabHostEveryGet.
@Test
public void tabActivityShouldNotMakeNewTabHostEveryGet() throws Exception {
TabActivity activity = Robolectric.buildActivity(TabActivity.class).create().get();
TabHost tabHost1 = activity.getTabHost();
TabHost tabHost2 = activity.getTabHost();
assertThat(tabHost1).isEqualTo(tabHost2);
}
use of android.app.TabActivity in project robolectric by robolectric.
the class ShadowTabHostTest method shouldGetTabWidget.
@Test
public void shouldGetTabWidget() throws Exception {
TabActivity activity = Robolectric.buildActivity(TabActivity.class).create().get();
activity.setContentView(R.layout.tab_activity);
TabHost host = new TabHost(activity);
assertThat(host.getTabWidget()).isInstanceOf(TabWidget.class);
}
use of android.app.TabActivity in project robolectric by robolectric.
the class ShadowTabActivityTest method shouldGetTabWidget.
@Test
public void shouldGetTabWidget() throws Exception {
TabActivity activity = Robolectric.buildActivity(TabActivity.class).create().get();
activity.setContentView(R.layout.tab_activity);
assertThat(activity.getTabWidget()).isInstanceOf(TabWidget.class);
}
Aggregations