Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 82 for test_toString (0.04 sec)

  1. guava-tests/test/com/google/common/net/HostAndPortTest.java

        // Non-bracketed IPv6 fails.
        assertThrows(
            IllegalArgumentException.class,
            () -> HostAndPort.fromString("::1").requireBracketsForIPv6());
      }
    
      public void testToString() {
        // With ports.
        assertEquals("foo:101", "" + HostAndPort.fromString("foo:101"));
        assertEquals(":102", HostAndPort.fromString(":102").toString());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SynchronizedMapTest.java

      public void testEquals() {
        boolean unused = create().equals(new HashMap<String, Integer>());
      }
    
      public void testHashCode() {
        int unused = create().hashCode();
      }
    
      public void testToString() {
        String unused = create().toString();
      }
    
      public void testSerialization() {
        SerializableTester.reserializeAndAssert(create());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 28 19:11:14 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java

        assertTrue(getMultiset().elementSet().remove(e0()));
        assertEquals(0, entry.getCount());
        getMultiset().add(e0(), 2);
        assertEquals(2, entry.getCount());
      }
    
      public void testToString() {
        assertEquals(getMultiset().entrySet().toString(), getMultiset().toString());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/ProtocolTest.kt

        assertThat(get("h3-29")).isEqualTo(Protocol.HTTP_3)
      }
    
      @Test
      fun testGetUnknown() {
        assertThrows(IOException::class.java) { get("tcp") }
      }
    
      @Test
      fun testToString() {
        assertThat(Protocol.HTTP_1_0.toString()).isEqualTo("http/1.0")
        assertThat(Protocol.HTTP_1_1.toString()).isEqualTo("http/1.1")
        assertThat(Protocol.SPDY_3.toString()).isEqualTo("spdy/3.1")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/EnumMultisetTest.java

      }
    
      public void testCreateEmptyWithoutClassFails() {
        assertThrows(
            IllegalArgumentException.class, () -> EnumMultiset.create(ImmutableList.<Color>of()));
      }
    
      public void testToString() {
        Multiset<Color> ms = EnumMultiset.create(Color.class);
        ms.add(Color.BLUE, 3);
        ms.add(Color.YELLOW, 1);
        ms.add(Color.RED, 2);
        assertEquals("[BLUE x 3, RED x 2, YELLOW]", ms.toString());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/StandardSystemPropertyTest.java

      public void testGetValue() {
        for (StandardSystemProperty property : StandardSystemProperty.values()) {
          assertEquals(System.getProperty(property.key()), property.value());
        }
      }
    
      public void testToString() {
        for (StandardSystemProperty property : StandardSystemProperty.values()) {
          assertEquals(property.key() + "=" + property.value(), property.toString());
        }
      }
    
      public void testNoNullValues() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/hash/HashCodeTest.java

      }
    
      private static byte[] byteArrayWith9s(int size) {
        byte[] bytez = new byte[size];
        Arrays.fill(bytez, (byte) 0x99);
        return bytez;
      }
    
      public void testToString() {
        byte[] data = new byte[] {127, -128, 5, -1, 14};
        assertEquals("7f8005ff0e", HashCode.fromBytes(data).toString());
        assertEquals("7f8005ff0e", base16().lowerCase().encode(data));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java

      }
    
      private static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> control(
          K key, V value) {
        return singletonMap(key, value).entrySet().iterator().next();
      }
    
      public void testToString() {
        assertEquals("foo=1", entry("foo", 1).toString());
      }
    
      public void testToStringNull() {
        assertEquals("null=1", entry(NK, 1).toString());
        assertEquals("foo=null", entry("foo", NV).toString());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
        assertEquals("[bar, foo x 2]", multiset.toString());
      }
    
      public void testToString() {
        Multiset<String> ms = TreeMultiset.create();
        ms.add("a", 3);
        ms.add("c", 1);
        ms.add("b", 2);
    
        assertEquals("[a x 3, b x 2, c]", ms.toString());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 13K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

          assertThat(length - baseStackDepth).isLessThan(DIRECT_EXECUTIONS_PER_THREAD / 2);
        }
      }
    
      @SuppressWarnings("ObjectToString") // Intended behavior
      public void testToString() {
        Future<?> unused = serializer.submitAsync(firstCallable, directExecutor());
        TestCallable secondCallable = new TestCallable(SettableFuture.<Void>create());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 20:58:01 UTC 2025
    - 16.1K bytes
    - Viewed (0)
Back to top