HomeSort by relevance Sort by last modified time
    Searched refs:nullValue (Results 1 - 25 of 223) sorted by null

1 2 3 4 5 6 7 8 9

  /external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
IsNull.java 26 * <pre>assertThat(cheese, is(nullValue())</pre>
29 public static Matcher<Object> nullValue() {
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) {
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(type))
    [all...]
  /frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
TileListTest.java 22 import static org.hamcrest.CoreMatchers.nullValue;
46 assertThat(mTileList.getItemAt(3), nullValue());
47 assertThat(mTileList.getItemAt(100), nullValue());
52 assertThat(mTileList.addOrReplace(createTile(0, 1, 2, 3)), nullValue());
56 assertThat(mTileList.getItemAt(3), nullValue());
62 assertThat(mTileList.addOrReplace(createTile(0, 1, 2, 3)), nullValue());
66 assertThat(mTileList.addOrReplace(createTile(3, 1, 2, 3)), nullValue());
75 assertThat(mTileList.addOrReplace(createTile(0, 1, 2, 3)), nullValue());
76 assertThat(mTileList.addOrReplace(createTile(3, 1, 2, 3)), nullValue());
77 assertThat(mTileList.addOrReplace(createTile(6, 1, 2, 3)), nullValue());
    [all...]
  /external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/
IsNullTest.java 8 import static org.hamcrest.core.IsNull.nullValue;
13 private final Matcher<Object> nullMatcher = nullValue();
36 requiresStringMatcher(nullValue(String.class));
  /frameworks/support/lifecycle/viewmodel/src/test/java/androidx/lifecycle/
ViewModelStoreTest.java 20 import static org.hamcrest.CoreMatchers.nullValue;
42 assertThat(store.get("a"), nullValue());
43 assertThat(store.get("b"), nullValue());
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ListPreferenceTest.java 15 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());
CameraTest.java 21 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...]
AndroidHttpClientTest.java 25 assertThat(client, not(nullValue()));
31 assertThat(client, not(nullValue()));
PreferenceActivityTest.java 5 import static org.hamcrest.CoreMatchers.nullValue;
46 assertThat(activity.getPreferenceScreen(), nullValue());
PreferenceScreenTest.java 13 import static org.hamcrest.CoreMatchers.nullValue;
38 assertThat(screen.getDialog(), nullValue());
PreferenceTest.java 5 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() );
SeekBarTest.java 3 import static org.hamcrest.CoreMatchers.nullValue;
39 assertThat(shadow.getOnSeekBarChangeListener(), nullValue());
  /frameworks/support/room/runtime/src/test/java/androidx/room/
ObservedTableTrackerTest.java 26 import static org.hamcrest.CoreMatchers.nullValue;
63 assertThat(mTracker.getTablesToSync(), is(nullValue()));
72 assertThat(mTracker.getTablesToSync(), is(nullValue()));
81 assertThat(mTracker.getTablesToSync(), is(nullValue()));
83 assertThat(mTracker.getTablesToSync(), is(nullValue()));
85 assertThat(mTracker.getTablesToSync(), is(nullValue()));
87 assertThat(mTracker.getTablesToSync(), is(nullValue()));
  /frameworks/support/app-toolkit/common/src/test/java/androidx/collection/
FastSafeIterableMapTest.java 20 import static org.hamcrest.CoreMatchers.nullValue;
34 assertThat(map.ceil(1), nullValue());
36 assertThat(map.ceil(1), nullValue());
40 assertThat(map.ceil(2), nullValue());
74 assertThat(map.putIfAbsent(10, 30), nullValue());
  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/text/
IsBlankString.java 11 import static org.hamcrest.core.IsNull.nullValue;
19 private static final Matcher<String> NULL_OR_BLANK_INSTANCE = anyOf(nullValue(), BLANK_INSTANCE);
IsEmptyString.java 9 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/
Assume.java 7 import static org.hamcrest.CoreMatchers.nullValue;
142 assumeThat(e, nullValue());
156 assumeThat(message, e, nullValue());
  /frameworks/support/room/runtime/src/test/java/androidx/room/util/
StringUtilTest.java 20 import static org.hamcrest.CoreMatchers.nullValue;
42 assertThat(StringUtil.splitToIntList(null), nullValue());
43 assertThat(StringUtil.joinIntoString(null), nullValue());
  /frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
KeyboardInterceptorTest.java 21 import static org.hamcrest.CoreMatchers.nullValue;
86 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()),
95 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()),
105 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()),
112 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()),
122 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()),
129 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()),
144 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()),
146 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()),
153 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()),
    [all...]
  /frameworks/support/navigation/common/src/test/java/androidx/navigation/
NavGraphTest.java 21 import static org.hamcrest.CoreMatchers.nullValue;
130 assertThat(destination.getParent(), nullValue());
154 assertThat(other.findNode(FIRST_DESTINATION_ID), nullValue());
164 assertThat(destination.getParent(), nullValue());
165 assertThat(graph.findNode(FIRST_DESTINATION_ID), nullValue());
200 assertThat(value.getParent(), nullValue());
201 assertThat(graph.findNode(value.getId()), nullValue());
215 assertThat(value.getParent(), nullValue());
216 assertThat(graph.findNode(value.getId()), nullValue());
238 assertThat(destination.getParent(), nullValue());
    [all...]
NavActionTest.java 20 import static org.hamcrest.CoreMatchers.nullValue;
48 assertThat(action.getNavOptions(), nullValue());
  /external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/internal/
NullSafety.java 14 matchers.add((Matcher<? super E>) (itemMatcher == null ? IsNull.nullValue() : itemMatcher));
  /frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
MainThreadCheckTest.java 21 import static org.hamcrest.CoreMatchers.nullValue;
65 assertThat(error, nullValue());
77 assertThat(error, nullValue());
89 assertThat(error, nullValue());
  /frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/test/
DependencyDaoTest.kt 27 import org.hamcrest.CoreMatchers.nullValue
51 assertThat(dao.findById(5), `is`(nullValue()))
58 assertThat(dao.findEmbedded(5), `is`(nullValue()))
67 assertThat(dao.findPojo(5), `is`(nullValue()))
  /frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/paging/
DataSourceFactoryTest.java 21 import static org.hamcrest.CoreMatchers.nullValue;
118 assertThat(observer.get(), nullValue());
128 assertThat(getAndLoad(pagedList1, 20), is(nullValue()));
130 assertThat(getAndLoad(pagedList1, 31), nullValue());
136 assertThat(getAndLoad(pagedList1, 50), nullValue());
143 assertThat(getAndLoad(pagedList1, 70), nullValue());
145 assertThat(getAndLoad(pagedList1, 70), nullValue());
148 assertThat(getAndLoad(pagedList, 70), nullValue());
  /packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
WebActivityTest.java 18 import static org.hamcrest.CoreMatchers.nullValue;
46 assertThat(intent, nullValue());

Completed in 1192 milliseconds

1 2 3 4 5 6 7 8 9