Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 60 for Ok (0.39 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

        try {
          assertEquals(
              "multiset.remove(absent, 2) didn't return 0 or throw an exception",
              0,
              getMultiset().remove(e3(), 2));
        } catch (UnsupportedOperationException ok) {
        }
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemove_occurrences_0() {
        int oldCount = getMultiset().count(e0());
        assertEquals(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/PreconditionsTest.java

          fail("no exception thrown");
        } catch (NullPointerException expected) {
          verifyComplexMessage(expected);
        }
      }
    
      public void testCheckElementIndex_ok() {
        assertEquals(0, Preconditions.checkElementIndex(0, 1));
        assertEquals(0, Preconditions.checkElementIndex(0, 2));
        assertEquals(1, Preconditions.checkElementIndex(1, 2));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java

      }
    
      // b/4558855
      public void testMadbotsBug() {
        assertEquals("../this", simplifyPath("../this"));
        assertEquals("../this/is/ok", simplifyPath("../this/is/ok"));
        assertEquals("../ok", simplifyPath("../this/../ok"));
      }
    
      // https://code.google.com/p/guava-libraries/issues/detail?id=705
      public void test705() {
        assertEquals("../b", simplifyPath("x/../../b"));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jul 19 14:00:24 GMT 2016
    - 11K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java

      }
    
      // b/4558855
      public void testMadbotsBug() {
        assertEquals("../this", simplifyPath("../this"));
        assertEquals("../this/is/ok", simplifyPath("../this/is/ok"));
        assertEquals("../ok", simplifyPath("../this/../ok"));
      }
    
      // https://code.google.com/p/guava-libraries/issues/detail?id=705
      public void test705() {
        assertEquals("../b", simplifyPath("x/../../b"));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 11K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/ByteSourceTester.java

        assertExpectedBytes(out.toByteArray());
      }
    
      public void testCopyTo_byteSink() throws IOException {
        final ByteArrayOutputStream out = new ByteArrayOutputStream();
        // HERESY! but it's ok just for this I guess
        source.copyTo(
            new ByteSink() {
              @Override
              public OutputStream openStream() throws IOException {
                return out;
              }
            });
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

            return;
          }
        }
        // Execute the runnable immediately. Because of scheduling this may end up getting called before
        // some of the previously added runnables, but we're OK with that. If we want to change the
        // contract to guarantee ordering among runnables we'd have to modify the logic here to allow
        // it.
        executeListener(runnable, executor);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/Types.java

            if (method.getDeclaringClass().equals(TypeVariableImpl.class)) {
              try {
                method.setAccessible(true);
              } catch (AccessControlException e) {
                // OK: the method is accessible to us anyway. The setAccessible call is only for
                // unusual execution environments where that might not be true.
              }
              builder.put(method.getName(), method);
            }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

        /*
         * We always hold the mutex when calling this. TODO(cpovirk): Is that important? Perhaps we need
         * to guarantee that each call to reserveEarliestAvailable, etc. sees a value >= the previous?
         * Also, is it OK that we don't hold the mutex when sleeping?
         */
        protected abstract long readMicros();
    
        protected abstract void sleepMicrosUninterruptibly(long micros);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/FunnelsTest.java

                while (bb.hasRemaining()) {
                  bb.get();
                }
              }
            };
        try {
          funnel.funnel(null, primitiveSink);
          fail();
        } catch (NullPointerException ok) {
        }
      }
    
      public void testAsOutputStream() throws Exception {
        PrimitiveSink sink = mock(PrimitiveSink.class);
        OutputStream out = Funnels.asOutputStream(sink);
        byte[] bytes = {1, 2, 3, 4};
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/reflect/TypeResolver.java

             * only way to get a TypeVariable instance for the resolved types is to create our own. The
             * created TypeVariable will not interoperate with any JDK TypeVariable. But this is OK: We
             * don't _want_ our new TypeVariable to be equal to the JDK TypeVariable because it has
             * _different bounds_ than the JDK TypeVariable. And it wouldn't make sense for our new
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 24.2K bytes
    - Viewed (0)
Back to top