Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 517 for assertThat (0.04 sec)

  1. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

      }
    
      public void testGet_misc() {
        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();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/message/MessageFormatterTest.java

            System.out.println(s);
            assertThat(s, is(notNullValue()));
            assertThat(s, is(equalTo("[EMsgLongSystemName0001]Hoge Hoge")));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testDispose() throws Exception {
            DisposableUtil.dispose();
            assertThat(MessageFormatter.initialized, is(not(true)));
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt

        val call = client.newCall(request)
        call.timeout().timeout(250, TimeUnit.MILLISECONDS)
        assertFailsWith<IOException> {
          call.execute()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("timeout")
          assertThat(call.isCanceled()).isTrue()
        }
      }
    
      @Test
      fun timeoutWritingRequestWithEnqueue() {
        server.enqueue(MockResponse())
        val request =
          Request
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketRecorder.kt

      fun assertTextMessage(payload: String?) {
        assertThat(nextEvent()).isEqualTo(Message(string = payload))
      }
    
      fun assertBinaryMessage(payload: ByteString?) {
        assertThat(nextEvent()).isEqualTo(Message(payload))
      }
    
      fun assertPing(payload: ByteString) {
        assertThat(nextEvent()).isEqualTo(Ping(payload))
      }
    
      fun assertPong(payload: ByteString) {
        assertThat(nextEvent()).isEqualTo(Pong(payload))
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/SetViewTest.java

        set1.add(0);
        assertThat(difference).containsExactly(0, 1, 3);
        set2.remove(2);
        assertThat(difference).containsExactly(0, 1, 2, 3);
      }
    
      public void testImmutableCopy_empty() {
        assertThat(union(emptySet(), emptySet()).immutableCopy()).isEmpty();
        assertThat(intersection(newHashSet(1, 2), newHashSet(3, 4)).immutableCopy()).isEmpty();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        ImmutableListMultimap<String, Integer> multimap = zis.combine(zat).build();
        assertThat(multimap.keySet()).containsExactly("a", "b", "c").inOrder();
        assertThat(multimap.values()).containsExactly(1, 3, 2, 4).inOrder();
        assertThat(multimap.get("a")).containsExactly(1, 3).inOrder();
        assertThat(multimap.get("b")).containsExactly(2);
        assertThat(multimap.get("c")).containsExactly(4);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MutableClassToInstanceMapTest.java

        map.putInstance(Integer.class, null);
        assertThat(map.get(Integer.class)).isNull();
        assertThat(map.getInstance(Integer.class)).isNull();
    
        map.put(Long.class, null);
        assertThat(map.get(Long.class)).isNull();
        assertThat(map.getInstance(Long.class)).isNull();
      }
    
      public void testPrimitiveAndWrapper() {
        assertThat(map.getInstance(int.class)).isNull();
        assertThat(map.getInstance(Integer.class)).isNull();
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 5K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt

            .build()
        execute(sanUrl).use { response ->
          assertThat(response.code).isEqualTo(200)
          assertThat(response.priorResponse!!.code).isEqualTo(421)
          assertThat(response.body.string()).isEqualTo("after misdirect")
        }
        val c0e0 = server.takeRequest()
        assertThat(c0e0.connectionIndex).isEqualTo(0)
        assertThat(c0e0.exchangeIndex).isEqualTo(0)
        val c0e1 = server.takeRequest()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Jun 19 11:44:16 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  9. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt

            header("Content-Encoding", "br")
          }
    
        val uncompressed = brotliInterceptor.decompress(response)
    
        val responseString = uncompressed.body.string()
        assertThat(responseString).contains("\"brotli\": true,")
        assertThat(responseString).contains("\"Accept-Encoding\": \"br\"")
      }
    
      @Test
      fun testUncompressGzip() {
        val s =
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Aug 22 08:12:58 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt

        val call = client.newCall(request)
        val response1 = call.execute()
    
        val cloned = call.clone()
        val response2 = cloned.execute()
    
        assertThat("abc").isEqualTo(response1.body.string())
        assertThat("def").isEqualTo(response2.body.string())
      }
    
      @Test
      @Flaky
      fun testMockWebserverRequest() {
        enableTls()
    
        server.enqueue(MockResponse(body = "abc"))
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 8.4K bytes
    - Viewed (0)
Back to top