Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 424 for Watch (0.12 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/QueueOfferTester.java

      }
    
      @CollectionFeature.Require(value = SUPPORTS_ADD, absent = ALLOWS_NULL_VALUES)
      public void testOffer_nullUnsupported() {
        try {
          getQueue().offer(null);
          fail("offer(null) should throw");
        } catch (NullPointerException expected) {
        }
        expectUnchanged();
        expectNullMissingWhenNullUnsupported("Should not contain null after unsupported offer(null)");
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/ReserializingTestCollectionGenerator.java

          out.writeObject(object);
          ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()));
          return (T) in.readObject();
        } catch (IOException | ClassNotFoundException e) {
          Helpers.fail(e, e.getMessage());
        }
        throw new AssertionError("not reachable");
      }
    
      @Override
      public SampleElements<E> samples() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 2.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsValueTester.java

      }
    
      @MapFeature.Require(absent = ALLOWS_NULL_VALUE_QUERIES)
      public void testContainsNullValueFails() {
        try {
          multimap().containsValue(null);
          fail("Expected NullPointerException");
        } catch (NullPointerException expected) {
          // success
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Nov 16 17:41:24 GMT 2022
    - 2.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/QueueRemoveTester.java

      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
      public void testRemove_empty() {
        try {
          getQueue().remove();
          fail("emptyQueue.remove() should throw");
        } catch (NoSuchElementException expected) {
        }
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ONE)
      public void testRemove_size1() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java

       *
       * @param message message to use upon assertion failure
       */
      protected void expectNullMissingWhenNullUnsupported(String message) {
        try {
          assertFalse(message, actualContents().contains(null));
        } catch (NullPointerException tolerated) {
          // Tolerated
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsValueTester.java

        try {
          // noinspection SuspiciousMethodCalls
          assertFalse(
              "containsValue(wrongType) should return false or throw",
              getMap().containsValue(WrongType.VALUE));
        } catch (ClassCastException tolerated) {
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/PackageSanityTests.java

        setDefault(EndpointPair.class, EndpointPair.ordered("A", "B"));
      }
    
      @Override
      public void testNulls() throws Exception {
        try {
          super.testNulls();
        } catch (AssertionFailedError e) {
          assertWithMessage("Method did not throw null pointer OR element not in graph exception.")
              .that(e)
              .hasCauseThat()
              .hasMessageThat()
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 19:24:25 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ImmediateFuture.java

      public void addListener(Runnable listener, Executor executor) {
        checkNotNull(listener, "Runnable was null.");
        checkNotNull(executor, "Executor was null.");
        try {
          executor.execute(listener);
        } catch (Exception e) { // sneaky checked exception
          // ListenableFuture's contract is that it will not throw unchecked exceptions, so log the bad
          // runnable and/or executor and swallow it.
          log.get()
              .log(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/SupplementalMonitorTest.java

                      actualIsOccupiedByCurrentThread.set(monitor.isOccupiedByCurrentThread());
                      actualOccupiedDepth.set(monitor.getOccupiedDepth());
                    } catch (Throwable t) {
                      thrown.set(t);
                    }
                  }
                }));
        assertNull(thrown.get());
        assertEquals(expectedIsOccupied, actualIsOccupied.get());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

          this.algorithmName = algorithmName;
          this.hashFn = hashFn;
        }
    
        public MessageDigest getMessageDigest() {
          try {
            return MessageDigest.getInstance(algorithmName);
          } catch (NoSuchAlgorithmException e) {
            throw new AssertionError(e);
          }
        }
    
        public HashFunction getHashFunction() {
          return hashFn;
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
Back to top