Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for ParameterNotInstantiableException (0.16 seconds)

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

      private static @Nullable Object generateDummyArg(Parameter param, FreshValueGenerator generator)
          throws ParameterNotInstantiableException {
        if (isNullable(param)) {
          return null;
        }
        Object arg = generator.generateFresh(param.getType());
        if (arg == null) {
          throw new ParameterNotInstantiableException(param);
        }
        return arg;
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 32.5K bytes
    - Click Count (0)
  2. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        assertThrows(
            ParameterNotInstantiableException.class,
            () -> tester.instantiate(ConstructorParameterNotInstantiable.class));
      }
    
      public void testInstantiate_factoryMethodParameterNotInstantiable() throws Exception {
        assertThrows(
            ParameterNotInstantiableException.class,
            () -> tester.instantiate(FactoryMethodParameterNotInstantiable.class));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 36.3K bytes
    - Click Count (0)
Back to Top