- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 517 for assertThat (0.17 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/HeadersTest.kt
val headers = mapOf("User-Agent" to "").toHeaders() assertThat(headers.value(0)).isEqualTo("") } @Test fun ofMapTrimsKey() { val headers = mapOf(" User-Agent " to "OkHttp").toHeaders() assertThat(headers.name(0)).isEqualTo("User-Agent") } @Test fun ofMapTrimsValue() { val headers = mapOf("User-Agent" to " OkHttp ").toHeaders() assertThat(headers.value(0)).isEqualTo("OkHttp") }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/impl/BeanDescImplTest.java
assertThat(propDesc.getReadMethod(), is(notNullValue())); assertThat(propDesc.getWriteMethod(), is(notNullValue())); propDesc = beanDesc.getPropertyDesc("fff"); assertThat(propDesc.getPropertyName(), is("fff")); assertThat(propDesc.getPropertyType(), is(sameClass(Boolean.class))); assertThat(beanDesc.hasPropertyDesc("hhh"), is(not(true)));
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Fri Jun 20 13:40:57 UTC 2025 - 13.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheReferencesTest.java
Key key = new Key(1); String value = key.toString(); assertThat(cache.getUnchecked(key)).isSameInstanceAs(value); assertThat(cache.asMap().isEmpty()).isFalse(); cache.invalidateAll(); assertThat(cache.size()).isEqualTo(0); assertThat(cache.asMap().isEmpty()).isTrue(); assertThat(cache.asMap().containsKey(key)).isFalse(); assertThat(cache.asMap().containsValue(value)).isFalse(); } }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 5.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java
assertThat(map).containsEntry(10, 20); assertThat(map).containsEntry(20, 0); assertThat(map).containsEntry(30, 1); assertThat(map).containsEntry(54, 2); assertThat(map).containsEntry(443, 3); assertThat(map).containsEntry(1, 4); assertThat(cache.get(6)).isEqualTo(5); assertThat(cache.apply(7)).isEqualTo(6); } @TestRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 14.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java
assertThat(map.keys).isNull(); assertThat(map.values).isNull(); assertThat(map.links).isNull(); map.put(1, Integer.toString(1)); assertThat(map.needsAllocArrays()).isFalse(); int expectedSize = max(1, i); assertThat(map.entries).hasLength(expectedSize); assertThat(map.keys).hasLength(expectedSize); assertThat(map.values).hasLength(expectedSize);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 6.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt
@Test fun durationDefaults() { val client = clientTestRule.newClient() assertThat(client.callTimeoutMillis).isEqualTo(0) assertThat(client.connectTimeoutMillis).isEqualTo(10000) assertThat(client.readTimeoutMillis).isEqualTo(10000) assertThat(client.writeTimeoutMillis).isEqualTo(10000) assertThat(client.pingIntervalMillis).isEqualTo(0) assertThat(client.webSocketCloseTimeout).isEqualTo(60_000) }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 13.4K bytes - Viewed (1) -
src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java
/** * @throws Exception */ @Test public void testToDate_Null() throws Exception { assertThat(toDate(null), is(nullValue())); } /** * @throws Exception */ @Test public void testToDate_EmptyString() throws Exception { assertThat(toDate(""), is(nullValue())); } /** * @throws Exception */ @TestRegistered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/org/codelibs/core/exception/ConverterRuntimeExceptionTest.java
final ConverterRuntimeException e = new ConverterRuntimeException("hoge", "xxx", new RuntimeException("cause")); System.out.println(e.getMessage()); assertThat(e.getPropertyName(), is("hoge")); assertThat(e.getValue(), is((Object) "xxx")); assertThat(e.getCause().getMessage(), is("cause")); }
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt
val source = response.body.source() assertThat(response.header("h1")).isEqualTo("v1") assertThat(response.peekTrailers()).isNull() assertThat(source.readUtf8()).isEqualTo(responseBody) assertThat(response.peekTrailers()).isEqualTo(headersOf("t1", "v2")) assertThat(response.peekTrailers()).isEqualTo(headersOf("t1", "v2")) // Idempotent. assertThat(response.trailers()).isEqualTo(headersOf("t1", "v2")) }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Nov 08 21:45:04 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactoryTest.java
assertThat(args.length, is(2)); assertThat(args[0].getRawClass(), is(sameClass(String.class))); assertThat(args[0].getArguments(), is(nullValue())); assertThat(args[1].getRawClass(), is(sameClass(Integer.class))); assertThat(args[1].getArguments(), is(nullValue())); } /** * @throws Exception */ @Test public void testMethodReturnType() throws Exception {
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 4.4K bytes - Viewed (0)