Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 134 for teststring (0.06 sec)

  1. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

          assertTrue(valid, InternetDomainName.isValid(valid));
        }
    
        for (String invalid : invalidCases) {
          assertFalse(invalid, InternetDomainName.isValid(invalid));
        }
      }
    
      public void testToString() {
        for (String inputName : SOMEWHERE_UNDER_PS) {
          InternetDomainName domain = InternetDomainName.from(inputName);
    
          /*
           * We would ordinarily use constants for the expected results, but
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. cmd/endpoint.go

    // HTTPS - returns true if secure for URLEndpointType.
    func (endpoints Endpoints) HTTPS() bool {
    	return endpoints[0].HTTPS()
    }
    
    // GetString - returns endpoint string of i-th endpoint (0-based),
    // and empty string for invalid indexes.
    func (endpoints Endpoints) GetString(i int) string {
    	if i < 0 || i >= len(endpoints) {
    		return ""
    	}
    	return endpoints[i].String()
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/LinkedHashMultimapTest.java

        multimap.put("foo", 5);
        multimap.put("bar", 4);
        multimap.put("foo", 3);
        multimap.put("cow", 2);
        multimap.put("bar", 1);
        return multimap;
      }
    
      public void testToString() {
        Multimap<String, Integer> multimap = LinkedHashMultimap.create();
        multimap.put("foo", 3);
        multimap.put("bar", 1);
        multimap.putAll("foo", asList(-1, 2, 4));
        multimap.putAll("bar", asList(2, 3));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/StatsTest.java

            .testEquals();
      }
    
      public void testSerializable() {
        SerializableTester.reserializeAndAssert(MANY_VALUES_STATS_ITERABLE);
      }
    
      public void testToString() {
        assertThat(EMPTY_STATS_VARARGS.toString()).isEqualTo("Stats{count=0}");
        assertThat(MANY_VALUES_STATS_ITERABLE.toString())
            .isEqualTo(
                "Stats{count="
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/net/MediaTypeTest.java

        tester.testAllPublicConstructors(MediaType.class);
        tester.testAllPublicStaticMethods(MediaType.class);
        tester.testAllPublicInstanceMethods(MediaType.parse("text/plain"));
      }
    
      public void testToString() {
        assertEquals("text/plain", MediaType.create("text", "plain").toString());
        assertEquals(
            "text/plain; something=\"cr@zy\"; something-else=\"crazy with spaces\";"
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        assertSame(c, copyOf(c));
      }
    
      public void testCopyOf_shortcut_sameType() {
        Collection<String> c = of("a", "b", "c");
        assertSame(c, copyOf(c));
      }
    
      public void testToString() {
        Set<String> set = of("a", "b", "c", "d", "e", "f", "g");
        assertEquals("[a, b, c, d, e, f, g]", set.toString());
      }
    
      @GwtIncompatible // slow (~40s)
      public void testIterator_oneElement() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        assertEquals(ImmutableSet.of(b), listener.failedServices);
        assertState(manager, Service.State.FAILED, b);
        assertState(manager, Service.State.TERMINATED, a, c);
      }
    
      public void testToString() throws Exception {
        Service a = new NoOpService();
        Service b = new FailStartService();
        ServiceManager manager = new ServiceManager(asList(a, b));
        String toString = manager.toString();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/BaseEncodingTest.java

          for (int i = 0; i < bytes.length; i++) {
            assertThat(decodingStream.read()).isEqualTo(bytes[i] & 0xFF);
          }
          assertThat(decodingStream.read()).isEqualTo(-1);
        }
      }
    
      public void testToString() {
        assertThat(base64().toString()).isEqualTo("BaseEncoding.base64().withPadChar('=')");
        assertThat(base32Hex().omitPadding().toString())
            .isEqualTo("BaseEncoding.base32Hex().omitPadding()");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 16:27:30 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/FilesTest.java

          this.badLength = badLength;
        }
    
        @Override
        public long length() {
          return badLength;
        }
    
        private static final long serialVersionUID = 0;
      }
    
      public void testToString() throws IOException {
        File asciiFile = getTestFile("ascii.txt");
        File i18nFile = getTestFile("i18n.txt");
        assertEquals(ASCII, Files.toString(asciiFile, US_ASCII));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
Back to top