Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for testConstructors (0.23 sec)

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

      }
    
      /**
       * Runs {@link #testConstructor} on every constructor in class {@code c} that has at least {@code
       * minimalVisibility}.
       */
      public void testConstructors(Class<?> c, Visibility minimalVisibility) {
        for (Constructor<?> constructor : c.getDeclaredConstructors()) {
          if (minimalVisibility.isVisible(constructor) && !isIgnored(constructor)) {
            testConstructor(constructor);
          }
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 23.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

      }
    
      /**
       * Runs {@link #testConstructor} on every constructor in class {@code c} that has at least {@code
       * minimalVisibility}.
       */
      public void testConstructors(Class<?> c, Visibility minimalVisibility) {
        for (Constructor<?> constructor : c.getDeclaredConstructors()) {
          if (minimalVisibility.isVisible(constructor) && !isIgnored(constructor)) {
            testConstructor(constructor);
          }
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 22.8K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          throws ParameterNotInstantiableException, IllegalAccessException, InvocationTargetException,
              FactoryMethodReturnsNullException {
        if (!Modifier.isAbstract(cls.getModifiers())) {
          nullPointerTester.testConstructors(cls, visibility);
        }
        nullPointerTester.testStaticMethods(cls, visibility);
        if (hasInstanceMethodToTestNulls(cls, visibility)) {
          Object instance = instantiate(cls);
          if (instance != null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

          throws ParameterNotInstantiableException, IllegalAccessException, InvocationTargetException,
              FactoryMethodReturnsNullException {
        if (!Modifier.isAbstract(cls.getModifiers())) {
          nullPointerTester.testConstructors(cls, visibility);
        }
        nullPointerTester.testStaticMethods(cls, visibility);
        if (hasInstanceMethodToTestNulls(cls, visibility)) {
          Object instance = instantiate(cls);
          if (instance != null) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/InvokableTest.java

      }
    
      public void testConstructor_returnType() throws Exception {
        assertEquals(Prepender.class, Prepender.constructor().getReturnType().getType());
      }
    
      private static class WithConstructorAndTypeParameter<T> {
        @SuppressWarnings("unused") // by reflection
        <X> WithConstructorAndTypeParameter() {}
      }
    
      public void testConstructor_returnType_hasTypeParameter() throws Exception {
    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)
  6. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        double[] a = null;
        assertThrows(NullPointerException.class, () -> new AtomicDoubleArray(a));
      }
    
      /** constructor with array is of same size and has all elements */
      public void testConstructor2() {
        AtomicDoubleArray aa = new AtomicDoubleArray(VALUES);
        assertEquals(VALUES.length, aa.length());
        for (int i = 0; i < VALUES.length; i++) {
          assertBitEquals(VALUES[i], aa.get(i));
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        double[] a = null;
        assertThrows(NullPointerException.class, () -> new AtomicDoubleArray(a));
      }
    
      /** constructor with array is of same size and has all elements */
      public void testConstructor2() {
        AtomicDoubleArray aa = new AtomicDoubleArray(VALUES);
        assertEquals(VALUES.length, aa.length());
        for (int i = 0; i < VALUES.length; i++) {
          assertBitEquals(VALUES[i], aa.get(i));
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/ToStringHelperTest.java

      public void testConstructor_classObject() {
        String toTest = MoreObjects.toStringHelper(TestClass.class).toString();
        assertEquals("TestClass{}", toTest);
      }
    
      public void testConstructorLenient_classObject() {
        String toTest = MoreObjects.toStringHelper(TestClass.class).toString();
        assertTrue(toTest, toTest.matches(".*\\{\\}"));
      }
    
      public void testConstructor_stringObject() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

      public void testConstructor_classObject() {
        String toTest = MoreObjects.toStringHelper(TestClass.class).toString();
        assertEquals("TestClass{}", toTest);
      }
    
      public void testConstructorLenient_classObject() {
        String toTest = MoreObjects.toStringHelper(TestClass.class).toString();
        assertTrue(toTest, toTest.matches(".*\\{\\}"));
      }
    
      public void testConstructor_stringObject() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  10. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

          checkNotNull(o);
        }
      }
    
      public void testConstructor_Ignored_ShouldPass() throws Exception {
        new NullPointerTester()
            .ignore(FailOnOneOfTwoConstructors.class.getDeclaredConstructor(String.class))
            .testAllPublicConstructors(FailOnOneOfTwoConstructors.class);
      }
    
      public void testConstructor_ShouldFail() throws Exception {
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
Back to top