blob: 9a4b8102ccbe65a96e032c8eada641b9d092ea6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package com.xtremelabs.robolectric.shadows;
import static org.hamcrest.CoreMatchers.instanceOf;
import static org.junit.Assert.assertThat;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import android.app.Activity;
import android.preference.PreferenceCategory;
import com.xtremelabs.robolectric.Robolectric;
import com.xtremelabs.robolectric.WithTestDefaultsRunner;
@RunWith(WithTestDefaultsRunner.class)
public class PreferenceCategoryTest {
private PreferenceCategory category;
private ShadowPreferenceCategory shadow;
@Before
public void setUp() throws Exception {
category = new PreferenceCategory(new Activity());
shadow = Robolectric.shadowOf(category);
}
@Test
public void shouldInheritFromPreferenceGroup() {
assertThat(shadow, instanceOf(ShadowPreferenceGroup.class));
}
}
|