Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 123 for test_0 (0.17 sec)

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

        private final transient ClassSanityTester tester;
    
        SerializableDummyProxy(ClassSanityTester tester) {
          this.tester = tester;
        }
    
        @Override
        <R> R dummyReturnValue(TypeToken<R> returnType) {
          return tester.getDummyValue(returnType);
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/net/InetAddressesTest.java

        // Test compat address.
        testIp = (Inet6Address) InetAddresses.forString("::1.2.3.4");
        assertTrue(InetAddresses.hasEmbeddedIPv4ClientAddress(testIp));
        InetAddress ipv4 = InetAddresses.forString("1.2.3.4");
        assertEquals(ipv4, InetAddresses.getEmbeddedIPv4ClientAddress(testIp));
    
        // Test 6to4 address.
        testIp = (Inet6Address) InetAddresses.forString("2002:0102:0304::1");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

      }
    
      public void testNulls_interface() {
        tester.testNulls(AnInterface.class);
      }
    
      public void testNulls_abstractClass() {
        tester.testNulls(AnAbstractClass.class);
      }
    
      public void testNulls_enum() throws Exception {
        tester.testNulls(OneConstantEnum.class);
        tester.testNulls(NoConstantEnum.class);
        tester.testNulls(TimeUnit.class);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertFalse(invokable.isAnnotationPresent(Tested.class));
      }
    
      @Retention(RetentionPolicy.RUNTIME)
      private @interface Tested {}
    
      private abstract static class A {
        @Tested private boolean privateField;
        @Tested int packagePrivateField;
        @Tested protected int protectedField;
        @Tested public String publicField;
        @Tested private static Iterable<String> staticField;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30.9K bytes
    - Viewed (0)
  5. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/JoinerTest.java

      public void testNullPointers() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(Joiner.class);
        tester.testInstanceMethods(Joiner.on(","), NullPointerTester.Visibility.PACKAGE);
        tester.testInstanceMethods(Joiner.on(",").skipNulls(), NullPointerTester.Visibility.PACKAGE);
        tester.testInstanceMethods(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/IterablesTest.java

      // Maps.filterValues() are not tested with removeIf() since Maps are not
      // Iterable.  Those returned by Iterators.filter() and Iterables.filter()
      // are not tested because they are unmodifiable.
    
      public void testConsumingIterable() {
        // Test data
        List<String> list = Lists.newArrayList(asList("a", "b"));
    
        // Test & Verify
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNulls() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicConstructors(AtomicLongMap.class);
        tester.testAllPublicStaticMethods(AtomicLongMap.class);
        AtomicLongMap<Object> map = AtomicLongMap.create();
        tester.testAllPublicInstanceMethods(map);
      }
    
      public void testCreate_map() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

              .build();
    
      public void testNulls() {
        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 {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

       */
      @Test
      public abstract void incidentEdges_checkReturnedSetMutability();
    
      @Test
      public void nodes_oneNode() {
        addNode(N1);
        assertThat(graph.nodes()).containsExactly(N1);
      }
    
      @Test
      public void nodes_noNodes() {
        assertThat(graph.nodes()).isEmpty();
      }
    
      @Test
      public void adjacentNodes_oneEdge() {
        putEdge(N1, N2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 16.6K bytes
    - Viewed (0)
Back to top