Searched refs:nullValue (Results 1 - 25 of 92) sorted by relevance

1234

/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
H A DIsNull.java26 * <pre>assertThat(cheese, is(nullValue())</pre>
29 public static Matcher<Object> nullValue() { method in class:IsNull
34 * A shortcut to the frequently used <code>not(nullValue())</code>.
38 * <pre>assertThat(cheese, is(not(nullValue())))</pre>
42 return not(nullValue());
49 * <pre>assertThat(cheese, is(nullValue(Cheese.class))</pre>
54 public static <T> Matcher<T> nullValue(Class<T> type) { method in class:IsNull
59 * A shortcut to the frequently used <code>not(nullValue(X.class)). Accepts a
64 * <pre>assertThat(cheese, is(not(nullValue(X.class))))</pre>
71 return not(nullValue(typ
[all...]
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/
H A DIsNullTest.java8 import static org.hamcrest.core.IsNull.nullValue;
13 private final Matcher<Object> nullMatcher = nullValue();
36 requiresStringMatcher(nullValue(String.class));
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
H A DListPreferenceTest.java15 import static org.hamcrest.CoreMatchers.nullValue;
40 assertThat(listPreference.getEntries(), nullValue());
47 assertThat(listPreference.getEntries(), nullValue());
56 assertThat(listPreference.getEntryValues(), nullValue());
63 assertThat(listPreference.getEntryValues(), nullValue());
70 assertThat(listPreference.getValue(), nullValue());
H A DCameraTest.java21 import static org.hamcrest.CoreMatchers.nullValue;
111 assertThat(callback.camera, nullValue());
112 assertThat(callback.data, nullValue());
124 assertThat(callback.camera, nullValue());
125 assertThat(callback.data, nullValue());
137 assertThat(callback.camera, nullValue());
138 assertThat(callback.data, nullValue());
150 assertThat(callback.camera, nullValue());
151 assertThat(callback.data, nullValue());
157 assertThat(callback.camera, nullValue());
[all...]
H A DAndroidHttpClientTest.java25 assertThat(client, not(nullValue()));
31 assertThat(client, not(nullValue()));
H A DPreferenceActivityTest.java5 import static org.hamcrest.CoreMatchers.nullValue;
46 assertThat(activity.getPreferenceScreen(), nullValue());
H A DPreferenceScreenTest.java13 import static org.hamcrest.CoreMatchers.nullValue;
38 assertThat(screen.getDialog(), nullValue());
H A DPreferenceTest.java5 import static org.hamcrest.CoreMatchers.nullValue;
66 assertThat(shadow.getAttrs(), nullValue());
85 assertThat(preference.getKey(), nullValue());
94 assertThat(preference.getTitle(), nullValue());
112 assertThat(preference.getSummary(), nullValue());
130 assertThat(shadow.getDefaultValue(), nullValue());
224 assertThat( preference.getIntent(), nullValue() );
231 assertThat( preference.getDependency(), nullValue() );
H A DSeekBarTest.java3 import static org.hamcrest.CoreMatchers.nullValue;
39 assertThat(shadow.getOnSeekBarChangeListener(), nullValue());
H A DAlarmManagerTest.java42 assertThat(shadowAlarmManager.getNextScheduledAlarm(), nullValue());
51 assertThat(shadowAlarmManager.getNextScheduledAlarm(), nullValue());
73 assertThat(shadowAlarmManager.getNextScheduledAlarm(), nullValue());
80 assertThat(shadowAlarmManager.getNextScheduledAlarm(), nullValue());
86 assertThat(shadowAlarmManager.getNextScheduledAlarm(), nullValue());
93 assertThat(shadowAlarmManager.getNextScheduledAlarm(), nullValue());
99 assertThat(shadowAlarmManager.getNextScheduledAlarm(), nullValue());
H A DRatingBarTest.java4 import static org.hamcrest.CoreMatchers.nullValue;
41 assertThat(shadow.getOnRatingBarChangeListener(), nullValue());
H A DContextTest.java68 assertThat(dataDir, not(nullValue()));
79 assertThat(dataDir, not(nullValue()));
85 assertThat(context.obtainStyledAttributes(null), not(nullValue()));
86 assertThat(context.obtainStyledAttributes(0, null), not(nullValue()));
87 assertThat(context.obtainStyledAttributes(null, null), not(nullValue()));
88 assertThat(context.obtainStyledAttributes(null, null, 0, 0), not(nullValue()));
H A DAbsSpinnerTest.java68 assertThat(spinner.getSelectedItem(), nullValue());
90 assertThat(spinner.getSelectedView(), nullValue());
98 assertThat(spinner.getSelectedView(), nullValue());
H A DUriMatcherTest.java13 import static org.hamcrest.CoreMatchers.nullValue;
35 assertThat(root.number, is(nullValue()));
36 assertThat(root.text, is(nullValue()));
H A DMapViewTest.java17 import static org.hamcrest.CoreMatchers.nullValue;
49 assertThat(overlay2.lastMotionEvent, nullValue());
50 assertThat(mapTouchListener.lastMotionEvent, nullValue());
62 assertThat(mapTouchListener.lastMotionEvent, nullValue());
H A DSyncResultTest.java21 assertThat(result.stats, not(nullValue()));
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/text/
H A DIsBlankString.java11 import static org.hamcrest.core.IsNull.nullValue;
19 private static final Matcher<String> NULL_OR_BLANK_INSTANCE = anyOf(nullValue(), BLANK_INSTANCE);
H A DIsEmptyString.java9 import static org.hamcrest.core.IsNull.nullValue;
17 private static final Matcher<String> NULL_OR_EMPTY_INSTANCE = anyOf(nullValue(), INSTANCE);
/external/junit/src/main/java/org/junit/
H A DAssume.java7 import static org.hamcrest.CoreMatchers.nullValue;
142 assumeThat(e, nullValue());
156 assumeThat(message, e, nullValue());
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/internal/
H A DNullSafety.java14 matchers.add((Matcher<? super E>) (itemMatcher == null ? IsNull.nullValue() : itemMatcher));
/external/jsoncpp/src/lib_json/
H A Djson_value.cpp232 case nullValue:
333 case nullValue:
377 case nullValue:
440 case nullValue:
489 case nullValue:
530 case nullValue:
565 case nullValue:
587 case nullValue:
610 case nullValue:
631 case nullValue
[all...]
/external/volley/src/test/java/com/android/volley/toolbox/
H A DDiskBasedCacheTest.java52 import static org.hamcrest.Matchers.nullValue;
92 assertThat(cache.get("key"), is(nullValue()));
110 assertThat(cache.get("unknown-key"), is(nullValue()));
121 assertThat(cache.get("key"), is(nullValue()));
133 assertThat(cache.get("key"), is(nullValue()));
183 assertThat(cache.get("oversize"), is(nullValue()));
198 assertThat(cache.get("kilobyte"), is(nullValue()));
199 assertThat(cache.get("kilobyte2"), is(nullValue()));
200 assertThat(cache.get("kilobyte3"), is(nullValue()));
223 assertThat(cache.get("key"), is(nullValue()));
[all...]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/
H A DResourceExtractorTest.java24 assertThat(resourceExtractor.getLocalResourceId("styleable/TitleBar_textStyle"), CoreMatchers.<Object>nullValue());
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/tester/org/apache/http/
H A DTestHttpResponseTest.java10 import static org.hamcrest.CoreMatchers.nullValue;
23 assertThat(resp.getFirstHeader("None"), nullValue());
24 assertThat(new TestHttpResponse(200, "OK").getFirstHeader("Foo"), nullValue());
38 assertThat(resp.getLastHeader("None"), nullValue());
/external/jsoncpp/src/test_lib_json/
H A Dmain.cpp173 JSONTEST_ASSERT(emptyObject_.isConvertibleTo(Json::nullValue));
176 JSONTEST_ASSERT(!object1_.isConvertibleTo(Json::nullValue));
215 JSONTEST_ASSERT(emptyArray_.isConvertibleTo(Json::nullValue));
218 JSONTEST_ASSERT(!array1_.isConvertibleTo(Json::nullValue));
246 JSONTEST_ASSERT_EQUAL(Json::nullValue, null_.type());
252 JSONTEST_ASSERT(null_.isConvertibleTo(Json::nullValue));
280 JSONTEST_ASSERT(emptyString_.isConvertibleTo(Json::nullValue));
283 JSONTEST_ASSERT(!string1_.isConvertibleTo(Json::nullValue));
308 JSONTEST_ASSERT(false_.isConvertibleTo(Json::nullValue));
311 JSONTEST_ASSERT(!true_.isConvertibleTo(Json::nullValue));
1506 Json::Value nullValue; local
[all...]

Completed in 338 milliseconds

1234