Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for endsWith (0.22 sec)

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

           * used in other tests.
           */
    
          String expectedName = Ascii.toLowerCase(inputName);
          expectedName = expectedName.replaceAll("[\u3002\uFF0E\uFF61]", ".");
    
          if (expectedName.endsWith(".")) {
            expectedName = expectedName.substring(0, expectedName.length() - 1);
          }
    
          assertEquals(expectedName, domain.toString());
        }
      }
    
      public void testPublicSuffixExclusion() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

          assertThat(urls.get(0).getPath()).endsWith("/relative/path/to/some.jar");
    
          assertThat(urls.get(1)).isEqualTo(new URL("file:///absolute/path/to/some.jar"));
    
          assertThat(urls.get(2).getProtocol()).isEqualTo("file");
          assertThat(urls.get(2).getAuthority()).isNull();
          assertThat(urls.get(2).getPath()).endsWith("/relative/path/to/class/root");
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 26 14:02:27 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/net/InternetDomainNameTest.java

           * used in other tests.
           */
    
          String expectedName = Ascii.toLowerCase(inputName);
          expectedName = expectedName.replaceAll("[\u3002\uFF0E\uFF61]", ".");
    
          if (expectedName.endsWith(".")) {
            expectedName = expectedName.substring(0, expectedName.length() - 1);
          }
    
          assertEquals(expectedName, domain.toString());
        }
      }
    
      public void testPublicSuffixExclusion() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      }
    
      public void testImmediateFailedFuture() throws Exception {
        Exception exception = new Exception();
        ListenableFuture<String> future = immediateFailedFuture(exception);
        assertThat(future.toString()).endsWith("[status=FAILURE, cause=[" + exception + "]]");
    
        try {
          getDone(future);
          fail();
        } catch (ExecutionException expected) {
          assertSame(exception, expected.getCause());
        }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      }
    
      public void testImmediateFailedFuture() throws Exception {
        Exception exception = new Exception();
        ListenableFuture<String> future = immediateFailedFuture(exception);
        assertThat(future.toString()).endsWith("[status=FAILURE, cause=[" + exception + "]]");
    
        try {
          getDone(future);
          fail();
        } catch (ExecutionException expected) {
          assertSame(exception, expected.getCause());
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/net/MediaTypeTest.java

      public void testConstants_charset() throws Exception {
        for (Field field : getConstantFields()) {
          Optional<Charset> charset = ((MediaType) field.get(null)).charset();
          if (field.getName().endsWith("_UTF_8")) {
            assertThat(charset).hasValue(UTF_8);
          } else {
            assertThat(charset).isAbsent();
          }
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/net/MediaTypeTest.java

      public void testConstants_charset() throws Exception {
        for (Field field : getConstantFields()) {
          Optional<Charset> charset = ((MediaType) field.get(null)).charset();
          if (field.getName().endsWith("_UTF_8")) {
            assertThat(charset).hasValue(UTF_8);
          } else {
            assertThat(charset).isAbsent();
          }
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
Back to top