- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 38 for isNotNull (0.15 seconds)
-
android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
assertThat(ArbitraryInstances.get(CharMatcher.class)).isNotNull(); assertThat(ArbitraryInstances.get(Currency.class).getCurrencyCode()).isNotNull(); assertThat(ArbitraryInstances.get(Locale.class)).isNotNull(); assertThat(ArbitraryInstances.get(Joiner.class).join(ImmutableList.of("a"))).isNotNull(); assertThat(ArbitraryInstances.get(Splitter.class).split("a,b")).isNotNull();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 22.4K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java
assertThat(ArbitraryInstances.get(CharMatcher.class)).isNotNull(); assertThat(ArbitraryInstances.get(Currency.class).getCurrencyCode()).isNotNull(); assertThat(ArbitraryInstances.get(Locale.class)).isNotNull(); assertThat(ArbitraryInstances.get(Joiner.class).join(ImmutableList.of("a"))).isNotNull(); assertThat(ArbitraryInstances.get(Splitter.class).split("a,b")).isNotNull();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 22.8K bytes - Click Count (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
other.proxyAddress } other.use { other.start() assertThat(other.socketAddress).isNotNull() assertThat(other.hostName).isNotNull() assertThat(other.port).isNotNull() assertThat(other.proxyAddress).isNotNull() } } @Test fun startIsIdempotentIfAddressIsConsistent() { val other = MockWebServer()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Aug 03 22:38:00 GMT 2025 - 28K bytes - Click Count (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
val handshake = request.handshake assertThat(handshake!!.tlsVersion).isNotNull() assertThat(handshake.cipherSuite).isNotNull() assertThat(handshake.localPrincipal).isNotNull() assertThat(handshake.localCertificates.size).isEqualTo(1) assertThat(handshake.peerPrincipal).isNotNull() assertThat(handshake.peerCertificates.size).isEqualTo(1) } @Test fun shutdownTwice() {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jul 03 13:16:34 GMT 2025 - 22.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt
* limitations under the License. */ package okhttp3 import assertk.assertThat import assertk.assertions.isEqualTo import assertk.assertions.isFalse import assertk.assertions.isNotNull import assertk.assertions.isTrue import java.io.IOException import java.io.InterruptedIOException import java.net.HttpURLConnection import java.time.Duration import java.util.concurrent.CountDownLatch
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 10.6K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt
val client = clientTestRule.newClient() // Values should be non-null. val a = client.newBuilder().build() assertThat(a.dispatcher).isNotNull() assertThat(a.connectionPool).isNotNull() assertThat(a.sslSocketFactory).isNotNull() assertThat(a.x509TrustManager).isNotNull() // Multiple clients share the instances. val b = client.newBuilder().build() assertThat(b.dispatcher).isSameInstanceAs(a.dispatcher)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 13.4K bytes - Click Count (1) -
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt
val networkRequest = chain.request() assertThat(networkRequest.header("User-Agent")).isNotNull() assertThat(networkRequest.header("Host")).isEqualTo( server.hostName + ":" + server.port, ) assertThat(networkRequest.header("Accept-Encoding")).isNotNull() // The network response also has everything, including the raw gzipped content.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 16:11:23 GMT 2025 - 28.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java
assertThat(staticMethodWithLocalClass()).isNotNull(); } public void testLocalClassInsideNonStaticMethod() { class MyLocalClass<T> { Type getType() { return new TypeToken<T>(getClass()) {}.getType(); } } assertThat(new MyLocalClass<String>().getType()).isNotNull(); } private static <T> Type staticMethodWithAnonymousClass() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 19.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java
assertThat(staticMethodWithLocalClass()).isNotNull(); } public void testLocalClassInsideNonStaticMethod() { class MyLocalClass<T> { Type getType() { return new TypeToken<T>(getClass()) {}.getType(); } } assertThat(new MyLocalClass<String>().getType()).isNotNull(); } private static <T> Type staticMethodWithAnonymousClass() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 19.6K bytes - Click Count (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.logging import assertk.assertThat import assertk.assertions.isNotNull import java.io.IOException import java.net.UnknownHostException import java.util.Arrays import mockwebserver3.MockResponse import mockwebserver3.MockWebServer import mockwebserver3.junit5.StartStop
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 10.2K bytes - Click Count (0)