Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 517 for assertThat (0.05 sec)

  1. android/guava-tests/test/com/google/common/collect/AbstractTableTest.java

        } else {
          assertThrows(UnsupportedOperationException.class, () -> table.clear());
        }
      }
    
      public void testPut() {
        assertThat(table.put("foo", 1, cellValue('a'))).isNull();
        assertThat(table.put("bar", 1, cellValue('b'))).isNull();
        assertThat(table.put("foo", 3, cellValue('c'))).isNull();
        assertEquals((Character) 'a', table.put("foo", 1, cellValue('d')));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/FilesFileTraverserTest.java

      }
    
      public void testFileTraverser_emptyDirectory() throws Exception {
        assertThat(Files.fileTraverser().breadthFirst(rootDir)).containsExactly(rootDir);
      }
    
      public void testFileTraverser_nonExistingFile() throws Exception {
        File file = new File(rootDir, "file-that-doesnt-exist");
    
        assertThat(Files.fileTraverser().breadthFirst(file)).containsExactly(file);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertFalse(diff1.areEqual());
        assertThat(diff1.entriesOnlyOnLeft().entrySet())
            .containsExactly(immutableEntry(4, "d"), immutableEntry(2, "b"))
            .inOrder();
        assertThat(diff1.entriesOnlyOnRight().entrySet()).contains(immutableEntry(6, "z"));
        assertThat(diff1.entriesInCommon().entrySet()).contains(immutableEntry(1, "a"));
        assertThat(diff1.entriesDiffering().entrySet())
            .containsExactly(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 22:56:33 UTC 2025
    - 62.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/MapCacheTest.java

        mapCache.put("B", "B_value");
        mapCache.put("C", "C_value");
    
        assertThat(mapCache.unmodifiableKeySet()).hasSize(3);
        for (String key : mapCache.unmodifiableKeySet()) {
          assertThat(mapCache.get(key)).isEqualTo(key + "_value");
        }
      }
    
      @Test
      public void testPutNewValue() {
        assertThat(mapCache.put("key", "value")).isNull();
        assertThat(mapCache.get("key")).isEqualTo("value"); // ensure key/value is cached
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/cache/CacheLoaderTest.java

        assertThat(loadCount.get()).isEqualTo(2);
        assertThat(reloadCount.get()).isEqualTo(1);
        assertThat(loadAllCount.get()).isEqualTo(2);
    
        executor.runNext();
        assertThat(loadCount.get()).isEqualTo(2);
        assertThat(reloadCount.get()).isEqualTo(2);
        assertThat(loadAllCount.get()).isEqualTo(2);
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CipherSuiteTest.kt

        assertThat(forJavaName(java.lang.String(cs.javaName) as String))
          .isSameAs(cs)
      }
    
      @Test
      fun equals() {
        assertThat(forJavaName("cipher")).isEqualTo(forJavaName("cipher"))
        assertThat(forJavaName("cipherB")).isNotEqualTo(forJavaName("cipherA"))
        assertThat(CipherSuite.TLS_RSA_EXPORT_WITH_RC4_40_MD5)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/PrimitivesTest.java

      public void testIsWrapperType() {
        assertThat(Primitives.isWrapperType(Void.class)).isTrue();
        assertThat(Primitives.isWrapperType(void.class)).isFalse();
      }
    
      public void testWrap() {
        assertThat(Primitives.wrap(int.class)).isEqualTo(Integer.class);
        assertThat(Primitives.wrap(Integer.class)).isEqualTo(Integer.class);
        assertThat(Primitives.wrap(String.class)).isEqualTo(String.class);
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:07:52 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/ResponseCommonTest.kt

        val peekedBody = response.peekBody(3)
        assertThat(peekedBody.string()).isEqualTo("abc")
        assertThat(response.body.string()).isEqualTo("abcdef")
      }
    
      @Test fun peekLongerThanResponse() {
        val response = newResponse(responseBody("abc"))
        val peekedBody = response.peekBody(6)
        assertThat(peekedBody.string()).isEqualTo("abc")
        assertThat(response.body.string()).isEqualTo("abc")
      }
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  9. android/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.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        assertThat(BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL)).isAtMost(maxDoubleValue);
        assertThat(BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL + 1))
            .isGreaterThan(maxDoubleValue);
      }
    
      public void testConstantsEverySixteenthFactorial() {
        for (int i = 0, n = 0; n <= DoubleMath.MAX_FACTORIAL; i++, n += 16) {
          assertThat(DoubleMath.everySixteenthFactorial[i])
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 30 14:15:36 UTC 2025
    - 27.3K bytes
    - Viewed (0)
Back to top