Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 317 for test_0 (0.18 sec)

  1. android/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 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/LongMathTest.java

        return big.longValue();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointers() {
        NullPointerTester tester = new NullPointerTester();
        tester.setDefault(int.class, 1);
        tester.setDefault(long.class, 1L);
        tester.testAllPublicStaticMethods(LongMath.class);
      }
    
      @GwtIncompatible // isPrime is GWT-incompatible
      public void testIsPrimeSmall() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/collect/testing/IteratorTesterTest.java

          super.verify(elements);
        }
      }
    
      public void testVerifyGetsCalled() {
        TesterThatCountsCalls tester = new TesterThatCountsCalls();
    
        tester.test();
    
        assertEquals(
            "Should have verified once per stimulus executed",
            tester.numCallsToVerify,
            tester.numCallsToNewTargetIterator * STEPS);
      }
    
      public void testVerifyCanThrowAssertionThatFailsTest() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

        }
    
        return requirements;
      }
    
      /**
       * Find all the tester annotations declared on a tester class or method.
       *
       * @param classOrMethod a class or method whose tester annotations to find
       * @return an iterable sequence of tester annotations on the class
       */
      public static Iterable<Annotation> getTesterAnnotations(AnnotatedElement classOrMethod) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 21 15:08:35 GMT 2022
    - 12.1K bytes
    - Viewed (0)
  5. 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)
  6. android/pom.xml

          </activation>
          <properties>
            <!--
                Some tests need reflective access to the internals of these packages. It is only the
                tests themselves and not the code being tested that needs that access, though there's no
                obvious way to ensure that.
    
                We could consider arranging things so that only the tests we know need this would get
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 12 20:26:18 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  7. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

    /**
     * Tests for {@link ForwardingWrapperTester}. Live in a different package to detect reflection
     * access issues, if any.
     *
     * @author Ben Yu
     */
    public class ForwardingWrapperTesterTest extends TestCase {
    
      private final ForwardingWrapperTester tester = new ForwardingWrapperTester();
    
      public void testGoodForwarder() {
        tester.testForwarding(
            Arithmetic.class,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  9. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 3.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/ParameterTest.java

          }
        }
      }
    
      public void testEquals() {
        EqualsTester tester = new EqualsTester();
        for (Method method : ParameterTest.class.getDeclaredMethods()) {
          for (Parameter param : Invokable.from(method).getParameters()) {
            tester.addEqualityGroup(param);
          }
        }
        tester.testEquals();
      }
    
      @SuppressWarnings("unused")
      private void someMethod(int i, int j) {}
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 06 02:06:03 GMT 2023
    - 2K bytes
    - Viewed (0)
Back to top