Class RandomAnnotationUtils

java.lang.Object
org.antublue.test.engine.internal.annotation.RandomAnnotationUtils

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

    • injectRandomFields

      public static void injectRandomFields(Class<?> testClass) throws Throwable
      Method to inject random values into static member fields
      Parameters:
      testClass - testClass
      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
    • injectRandomFields

      public static void injectRandomFields(Object testInstance) throws Throwable
      Method to inject member variable fields
      Parameters:
      testInstance - testInstance
      Throws:
      Throwable - Throwable
    • clearRandomFields

      public static void clearRandomFields(Object testInstance) throws Throwable
      Throws:
      Throwable