Class ReflectionSupportFacade

java.lang.Object
net.jqwik.api.facades.ReflectionSupportFacade

@API(status=INTERNAL) public abstract class ReflectionSupportFacade extends Object
  • Field Details

  • Constructor Details

    • ReflectionSupportFacade

      public ReflectionSupportFacade()
  • Method Details

    • newInstanceInTestContext

      public abstract <T> T newInstanceInTestContext(Class<T> clazz, Object context)
      Create instance of a class that can potentially be a non static inner class and its outer instance might be context
      Type Parameters:
      T - The type of the instance to create
      Parameters:
      clazz - The class to instantiate
      context - The potential context instance
      Returns:
      the newly created instance
    • newInstanceWithDefaultConstructor

      public abstract <T> T newInstanceWithDefaultConstructor(Class<T> clazz)
      Create instance of a class that can potentially be a non static inner class
      Type Parameters:
      T - The type of the instance to create
      Parameters:
      clazz - The class to instantiate
      Returns:
      the newly created instance