Class RandomAnnotationSupport

java.lang.Object
org.antublue.test.engine.internal.support.RandomAnnotationSupport

public class RandomAnnotationSupport extends Object
Class to process @TestEngine.Random.X annotations
  • Method Details

    • setRandomFields

      public static void setRandomFields(Class<?> testClass) throws Throwable
      Method to inject random values into static member fields
      Parameters:
      testClass - testClass
      Throws:
      Throwable - Throwable
    • setRandomFields

      public static void setRandomFields(Object testInstance) throws Throwable
      Method to inject random values into member fields
      Parameters:
      testInstance - testInstance
      Throws:
      Throwable - Throwable
    • clearRandomFields

      public static void clearRandomFields(Class<?> testClass) throws Throwable
      Method to clear random values in static member fields
      Parameters:
      testClass - testClass
      Throws:
      Throwable - Throwable
    • clearRandomFields

      public static void clearRandomFields(Object testInstance) throws Throwable
      Method to clear random values in member fields
      Parameters:
      testInstance - testInstance
      Throws:
      Throwable - Throwable