MCPcopy
hub / github.com/google/gson / testGetAdapter_Null

Method testGetAdapter_Null

gson/src/test/java/com/google/gson/GsonTest.java:155–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153 }
154
155 @Test
156 public void testGetAdapter_Null() {
157 Gson gson = new Gson();
158 NullPointerException e =
159 assertThrows(NullPointerException.class, () -> gson.getAdapter((TypeToken<?>) null));
160 assertThat(e).hasMessageThat().isEqualTo("type must not be null");
161 }
162
163 @Test
164 public void testGetAdapter_Concurrency() {

Callers

nothing calls this directly

Calls 1

getAdapterMethod · 0.95

Tested by

no test coverage detected