Searched refs:notNullValue (Results 1 - 25 of 38) sorted by relevance

12

/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/
H A DIsNullTest.java7 import static org.hamcrest.core.IsNull.notNullValue;
14 private final Matcher<Object> notNullMatcher = notNullValue();
37 requiresStringMatcher(notNullValue(String.class));
H A DAllOfTest.java10 import static org.hamcrest.core.IsNull.notNullValue;
46 is(notNullValue()),
H A DCombinableTest.java9 import static org.hamcrest.core.IsNull.notNullValue;
66 Matcher<String> matcher = CombinableMatcher.both(equalTo("yellow")).and(notNullValue(String.class));
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
H A DIsNull.java36 * <pre>assertThat(cheese, is(notNullValue()))</pre>
41 public static Matcher<Object> notNullValue() { method in class:IsNull
62 * <pre>assertThat(cheese, is(notNullValue(X.class)))</pre>
70 public static <T> Matcher<T> notNullValue(Class<T> type) { method in class:IsNull
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
H A DAnimationUtilsTest.java14 import static org.hamcrest.CoreMatchers.notNullValue;
22 assertThat(AnimationUtils.loadAnimation(new Activity(), 1), notNullValue());
H A DListFragmentTest.java14 import static org.hamcrest.CoreMatchers.notNullValue;
28 assertThat(listFragment.getListAdapter(), is(notNullValue()));
H A DContentProviderTest.java4 import static org.hamcrest.CoreMatchers.notNullValue;
64 assertThat(provider.getContext(), is(notNullValue()));
68 assertThat(provider.getContext().getContentResolver(), is(notNullValue()));
H A DCookieSyncManagerTest.java3 import static org.hamcrest.CoreMatchers.notNullValue;
22 assertThat( CookieSyncManager.createInstance( new Activity() ) , notNullValue() );
28 assertThat( CookieSyncManager.getInstance(), notNullValue() );
H A DSpannableStringTest.java4 import static org.hamcrest.CoreMatchers.notNullValue;
55 assertThat(spans, notNullValue());
68 assertThat(spans, notNullValue());
73 assertThat(spans, notNullValue());
78 assertThat(spans, notNullValue());
83 assertThat(spans, notNullValue());
88 assertThat(spans, notNullValue());
H A DCountDownTimerTest.java14 import static org.hamcrest.CoreMatchers.notNullValue;
64 assertThat(timer, notNullValue());
71 assertThat(timer, notNullValue());
H A DListPreferenceTest.java14 import static org.hamcrest.CoreMatchers.notNullValue;
49 assertThat(listPreference.getEntries(), notNullValue());
65 assertThat(listPreference.getEntryValues(), notNullValue());
H A DListActivityTest.java14 import static org.hamcrest.CoreMatchers.notNullValue;
27 assertThat(listActivity.getListAdapter(), is(notNullValue()));
H A DPreferenceActivityTest.java6 import static org.hamcrest.CoreMatchers.notNullValue;
36 assertThat( activity.getListView(), notNullValue() );
H A DCameraParametersTest.java16 import static org.hamcrest.CoreMatchers.notNullValue;
85 assertThat(supportedFormats, notNullValue());
93 assertThat(supportedFormats, notNullValue());
101 assertThat(supportedSizes, notNullValue());
110 assertThat(supportedSizes, notNullValue());
119 assertThat(supportedRanges, notNullValue());
130 assertThat(supportedRates, notNullValue());
H A DResourcesTest.java7 import static org.hamcrest.CoreMatchers.notNullValue;
50 assertThat(configuration, notNullValue());
51 assertThat(configuration.locale, notNullValue());
61 assertThat(resources.newTheme(), notNullValue());
H A DContentProviderOperationBuilderTest.java5 import static org.hamcrest.CoreMatchers.notNullValue;
68 assertThat(operation, notNullValue());
H A DAlarmManagerTest.java46 assertThat(scheduledAlarm, notNullValue());
56 assertThat(scheduledAlarm, notNullValue());
106 assertThat(shadowAlarmManager.peekNextScheduledAlarm(), notNullValue());
147 assertThat(scheduledAlarm, notNullValue());
148 assertThat(scheduledAlarm.operation, notNullValue());
H A DSQLiteOpenHelperTest.java14 import static org.hamcrest.CoreMatchers.notNullValue;
93 assertThat(database, notNullValue());
H A DTelephonyManagerTest.java15 import static org.hamcrest.CoreMatchers.notNullValue;
38 assertThat(shadowManager.getListener(), notNullValue());
H A DPasswordTransformationMethodTest.java54 assertThat(ShadowPasswordTransformationMethod.getInstance(), is(CoreMatchers.<Object>notNullValue()));
H A DActivityTest.java112 assertThat(startedIntent, notNullValue());
125 assertThat(intentForResult, notNullValue());
127 assertThat(intentForResult.intent, notNullValue());
141 assertThat(intentForResult, notNullValue());
143 assertThat(intentForResult.intent, notNullValue());
293 assertThat(ShadowDialog.getLatestDialog(), CoreMatchers.<Object>notNullValue());
462 assertThat( shadow.getManagedCursors(), notNullValue() );
468 assertThat( shadow.getManagedCursors(), notNullValue() );
474 assertThat( shadow.getManagedCursors(), notNullValue() );
H A DCursorAdapterTest.java4 import static org.hamcrest.CoreMatchers.notNullValue;
65 assertThat(adapter.getCursor(), notNullValue());
/external/junit/src/main/java/org/junit/
H A DAssume.java6 import static org.hamcrest.CoreMatchers.notNullValue;
73 assumeThat(asList(objects), everyItem(notNullValue()));
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/
H A DRobolectricPackageManagerTest.java44 assertThat(info, notNullValue());
58 assertThat(info, notNullValue());
69 assertThat(activities, notNullValue()); // empty list, not null
84 assertThat(activities, notNullValue());
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/
H A DCoreMatchers.java315 * <pre>assertThat(cheese, is(notNullValue()))</pre>
319 public static org.hamcrest.Matcher<java.lang.Object> notNullValue() { method in class:CoreMatchers
320 return org.hamcrest.core.IsNull.notNullValue();
327 * <pre>assertThat(cheese, is(notNullValue(X.class)))</pre>
334 public static <T> org.hamcrest.Matcher<T> notNullValue(java.lang.Class<T> type) { method in class:CoreMatchers
335 return org.hamcrest.core.IsNull.notNullValue(type);

Completed in 1042 milliseconds

12