- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 522 for assertThat (0.2 sec)
-
src/test/java/org/codelibs/core/text/JsonUtilTest.java
package org.codelibs.core.text; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; import org.junit.Test; /** * @author shinsuke * */ public class JsonUtilTest { @Test public void escape() { assertThat(JsonUtil.escape("abc123あア亜"), is("abc123あア亜")); assertThat(JsonUtil.escape("\\\"/\b\t\n\f\r\0"), is("\\\\\\\"\\/\\b\\t\\n\\f\\r\\u0000")); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt
assertThat("0:0:0:0:0:FFFF:129.144.52.38".canParseAsIpAddress()).isTrue() assertThat("::13.1.68.3".canParseAsIpAddress()).isTrue() assertThat("::FFFF:129.144.52.38".canParseAsIpAddress()).isTrue() // Hostnames assertThat("go".canParseAsIpAddress()).isFalse() assertThat("localhost".canParseAsIpAddress()).isFalse() assertThat("squareup.com".canParseAsIpAddress()).isFalse()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 40.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/GenericsUtilTest.java
assertThat(entry.getKey().getName(), is("T1")); assertThat(entry.getValue(), is(sameClass(Integer.class))); entry = it.next(); assertThat(entry.getKey().getName(), is("T2")); assertThat(entry.getValue(), is(sameClass(Long.class))); entry = it.next(); assertThat(entry.getKey().getName(), is("T1")); assertThat(entry.getValue(), is(sameClass(String.class)));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 11.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/BytesTest.java
assertThat(Bytes.indexOf(EMPTY, ARRAY234)).isEqualTo(-1); assertThat(Bytes.indexOf(ARRAY234, ARRAY1)).isEqualTo(-1); assertThat(Bytes.indexOf(ARRAY1, ARRAY234)).isEqualTo(-1); assertThat(Bytes.indexOf(ARRAY1, ARRAY1)).isEqualTo(0); assertThat(Bytes.indexOf(ARRAY234, ARRAY234)).isEqualTo(0); assertThat(Bytes.indexOf(ARRAY234, new byte[] {(byte) 2, (byte) 3})).isEqualTo(0);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 17.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt
assertThat(source.readUtf8()).isEqualTo("hello") } @Test fun bytesEmpty() { val body = body("") assertThat(body.bytes().size).isEqualTo(0) } @Test fun bytesSeesBom() { val body = body("efbbbf68656c6c6f") val bytes = body.bytes() assertThat(bytes[0] and 0xff).isEqualTo(0xef) assertThat(bytes[1] and 0xff).isEqualTo(0xbb)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon May 13 13:42:37 UTC 2024 - 13K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
ImmutableDoubleArray iia = ImmutableDoubleArray.of(1, 1, 2, 3, 5, 8); assertThat(iia.indexOf(1)).isEqualTo(0); assertThat(iia.indexOf(8)).isEqualTo(5); assertThat(iia.indexOf(4)).isEqualTo(-1); assertThat(ImmutableDoubleArray.of(13).indexOf(13)).isEqualTo(0); assertThat(ImmutableDoubleArray.of().indexOf(21)).isEqualTo(-1); assertThat(iia.subArray(1, 5).indexOf(1)).isEqualTo(0); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 21.2K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java
Set<Feature<?>> features = newHashSet(FOO); assertThat(addImpliedFeatures(features)).isSameInstanceAs(features); } public void testAddImpliedFeatures_addsImpliedFeatures() { assertThat(addImpliedFeatures(newHashSet(FOO))).containsExactly(FOO); assertThat(addImpliedFeatures(newHashSet(IMPLIES_IMPLIES_FOO))) .containsExactly(IMPLIES_IMPLIES_FOO, IMPLIES_FOO, FOO);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 05 22:05:05 UTC 2024 - 11.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CookiesTest.kt
assertThat(cookies.size).isEqualTo(1) val cookie = cookies[0] assertThat(cookie.name).isEqualTo("a") assertThat(cookie.value).isEqualTo("android") assertThat(cookie.comment).isNull() assertThat(cookie.commentURL).isNull() assertThat(cookie.discard).isFalse() assertThat(cookie.maxAge).isGreaterThan(100000000000L) assertThat(cookie.path).isEqualTo("/path")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 13K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java
final Map<String, Object> map = BeanUtil.copyBeanToNewMap(hoge); assertThat(map.size(), is(4)); assertThat(map.get("aaa"), is((Object) "1")); assertThat(map.get("search_bbb"), is((Object) "2")); assertThat(map.get("search_ccc.ddd"), is((Object) "3")); assertThat(map.get("employee.name"), is(nullValue())); } /** * @throws Exception */
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 34.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/FrameLogTest.kt
assertThat(frameLog(true, 0, 15, TYPE_SETTINGS, FLAG_NONE)) .isEqualTo("<< 0x00000000 15 SETTINGS ") assertThat(frameLog(false, 0, 0, TYPE_SETTINGS, FLAG_ACK)) .isEqualTo(">> 0x00000000 0 SETTINGS ACK") assertThat(frameLog(true, 0, 0, TYPE_SETTINGS, FLAG_ACK)) .isEqualTo("<< 0x00000000 0 SETTINGS ACK") assertThat(frameLog(true, 3, 22, TYPE_HEADERS, FLAG_END_HEADERS))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.9K bytes - Viewed (0)