Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,504 for test_0 (0.18 sec)

  1. android/guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java

      }
    
      public void testChecksForNull() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(
            new HashingOutputStream(Hashing.md5(), new ByteArrayOutputStream()));
        tester.testAllPublicStaticMethods(HashingOutputStream.class);
        tester.testAllPublicConstructors(HashingOutputStream.class);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 3.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        assertFalse(future.isDone());
        assertTrue(future.setException(new Exception("failure")));
        tester.testFailedFuture("failure");
      }
    
      public void testCancel() throws Exception {
        assertTrue(future.cancel(true));
        tester.testCancelledFuture();
      }
    
      /** Tests the initial state of the future. */
      public void testCreate() throws Exception {
        SettableFuture<Integer> future = SettableFuture.create();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.3K bytes
    - Viewed (1)
  3. android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        assertFalse(future.isDone());
        assertTrue(future.setException(new Exception("failure")));
        tester.testFailedFuture("failure");
      }
    
      public void testCancel() throws Exception {
        assertTrue(future.cancel(true));
        tester.testCancelledFuture();
      }
    
      /** Tests the initial state of the future. */
      public void testCreate() throws Exception {
        SettableFuture<Integer> future = SettableFuture.create();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/MoreObjectsTest.java

        }
      }
    
      // ToStringHelper's tests are in ToStringHelperTest
    
      @J2ktIncompatible
      @GwtIncompatible("NullPointerTester")
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.ignore(MoreObjects.class.getMethod("firstNonNull", Object.class, Object.class));
        tester.testAllPublicStaticMethods(MoreObjects.class);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/EvictingQueueTest.java

      public void testNullPointerExceptions() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(EvictingQueue.class);
        tester.testAllPublicConstructors(EvictingQueue.class);
        EvictingQueue<String> queue = EvictingQueue.create(5);
        // The queue must be non-empty so it throws a NPE correctly
        queue.add("one");
        tester.testAllPublicInstanceMethods(queue);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/EquivalenceTest.java

        NullPointerTester tester = new NullPointerTester();
        // Necessary until JDK15:
        // https://bugs.openjdk.org/browse/JDK-8202469
        tester.ignore(Equivalence.class.getMethod("wrap", Object.class));
    
        tester.testAllPublicStaticMethods(Equivalence.class);
        tester.testAllPublicInstanceMethods(Equivalence.equals());
        tester.testAllPublicInstanceMethods(Equivalence.identity());
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

        return !disjoint(a, b);
      }
    
      private static Method extractMethod(Test test) {
        if (test instanceof AbstractTester) {
          AbstractTester<?> tester = (AbstractTester<?>) test;
          return Helpers.getMethod(tester.getClass(), tester.getTestMethodName());
        } else if (test instanceof TestCase) {
          TestCase testCase = (TestCase) test;
          return Helpers.getMethod(testCase.getClass(), testCase.getName());
        } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

      }
    
      public void testChecksForNull() throws Exception {
        NullPointerTester tester = new NullPointerTester();
    
        tester.testAllPublicInstanceMethods(new HashingInputStream(Hashing.md5(), buffer));
        tester.testAllPublicStaticMethods(HashingInputStream.class);
        tester.testAllPublicConstructors(HashingInputStream.class);
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5K bytes
    - Viewed (0)
  9. guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

      }
    
      public void testNullEqualityGroup() {
        EqualsTester tester = new EqualsTester();
        try {
          tester.addEqualityGroup((Object[]) null);
          fail();
        } catch (NullPointerException e) {
        }
      }
    
      public void testNullObjectInEqualityGroup() {
        EqualsTester tester = new EqualsTester();
        try {
          tester.addEqualityGroup(1, null, 3);
          fail();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/PatternFilenameFilterTest.java

      }
    
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
    
        tester.testConstructors(PatternFilenameFilter.class, Visibility.PACKAGE);
        tester.testStaticMethods(PatternFilenameFilter.class, Visibility.PACKAGE); // currently none
    
        // The reason that we skip this method is discussed in a comment on the method.
        tester.ignore(PatternFilenameFilter.class.getMethod("accept", File.class, String.class));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2K bytes
    - Viewed (0)
Back to top