Class TestBaseUtils


  • public final class TestBaseUtils
    extends java.lang.Object
    TestBaseUtils provides utility methods for solving general-purpose tasks related to TestBase.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TestData newRandomTestData​(TestBaseQuery query)
      Generates random test data for the specified TestBase query.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • newRandomTestData

        public static TestData newRandomTestData​(TestBaseQuery query)
        Generates random test data for the specified TestBase query. The idea is the following: it generates random values for unknown variables in the TestBase query bindings and puts them into a TestData object.
        Parameters:
        query - TestBase query to be processed.
        Returns:
        Test data containing random values.
        Throws:
        java.lang.IllegalArgumentException - if the argument is code null; if any of the unknown variables in the TestBase query bindings is not represented by a bit vector.