Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 47 for testAllPublicInstanceMethods (0.09 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava-tests/test/com/google/common/collect/RangeNonGwtTest.java

        NullPointerTester tester = new NullPointerTester();
    
        tester.testAllPublicStaticMethods(Range.class);
        tester.testAllPublicStaticMethods(Range.class);
    
        tester.testAllPublicInstanceMethods(Range.all());
        tester.testAllPublicInstanceMethods(Range.open(1, 3));
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 1.2K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/net/HostSpecifierTest.java

        return HostSpecifier.fromValid(specifier);
      }
    
      public void testNulls() {
        NullPointerTester tester = new NullPointerTester();
    
        tester.testAllPublicStaticMethods(HostSpecifier.class);
        tester.testAllPublicInstanceMethods(HostSpecifier.fromValid("google.com"));
      }
    
      private void assertGood(String spec) throws ParseException {
        // Throws exception if not working correctly
        HostSpecifier unused = HostSpecifier.fromValid(spec);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/base/OptionalTest.java

        NullPointerTester npTester = new NullPointerTester();
        npTester.testAllPublicConstructors(Optional.class);
        npTester.testAllPublicStaticMethods(Optional.class);
        npTester.testAllPublicInstanceMethods(Optional.absent());
        npTester.testAllPublicInstanceMethods(Optional.of("training"));
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

        list.add(THROWING_RUNNABLE, directExecutor());
        list.execute();
        list.add(THROWING_RUNNABLE, directExecutor());
      }
    
      public void testNulls() {
        new NullPointerTester().testAllPublicInstanceMethods(new ExecutionList());
      }
    
      private static final Runnable THROWING_RUNNABLE =
          new Runnable() {
            @Override
            public void run() {
              throw new RuntimeException();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Jul 11 18:52:30 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/base/MoreObjectsTest.java

        NullPointerTester tester = new NullPointerTester();
        tester.ignore(MoreObjects.class.getMethod("firstNonNull", Object.class, Object.class));
        tester.testAllPublicStaticMethods(MoreObjects.class);
        tester.testAllPublicInstanceMethods(MoreObjects.toStringHelper(new TestClass()));
      }
    
      /** Test class for testing formatting of inner classes. */
      private static class TestClass {}
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/base/MoreObjectsTest.java

        NullPointerTester tester = new NullPointerTester();
        tester.ignore(MoreObjects.class.getMethod("firstNonNull", Object.class, Object.class));
        tester.testAllPublicStaticMethods(MoreObjects.class);
        tester.testAllPublicInstanceMethods(MoreObjects.toStringHelper(new TestClass()));
      }
    
      /** Test class for testing formatting of inner classes. */
      private static class TestClass {}
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        NullPointerTester tester =
            new NullPointerTester().setDefault(String.class, "HmacMD5").setDefault(Key.class, MD5_KEY);
        tester.testAllPublicConstructors(MacHashFunction.class);
        tester.testAllPublicInstanceMethods(new MacHashFunction("HmacMD5", MD5_KEY, "toString"));
      }
    
      public void testHashing() throws Exception {
        for (String stringToTest : INPUTS) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 27 16:19:35 GMT 2024
    - 13.8K bytes
    - Click Count (0)
  8. guava-testlib/test/com/google/common/testing/FakeTickerTest.java

    @NullUnmarked
    public class FakeTickerTest extends TestCase {
    
      @GwtIncompatible // NullPointerTester
      public void testNullPointerExceptions() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(new FakeTicker());
      }
    
      @GwtIncompatible // java.time.Duration
      public void testAdvance() {
        FakeTicker ticker = new FakeTicker();
        assertEquals(0, ticker.read());
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/MapMakerTest.java

    @NullUnmarked
    public class MapMakerTest extends TestCase {
      @GwtIncompatible // NullPointerTester
      public void testNullParameters() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(new MapMaker());
      }
    
      @GwtIncompatible // threads
      static final class DelayingIdentityLoader<T> implements Function<T, T> {
        private final CountDownLatch delayLatch;
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  10. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        }
        fail();
      }
    
      public void testInterfaceDefaultMethod() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicInstanceMethods(InterfaceDefaultMethodChecksNull.create());
        try {
          tester.testAllPublicInstanceMethods(InterfaceDefaultMethodFailsToCheckNull.create());
        } catch (AssertionError expected) {
          return;
        }
        fail();
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 47.8K bytes
    - Click Count (0)
Back to Top