Package ru.ispras.testbase
Class TestBaseUtils
- java.lang.Object
-
- ru.ispras.testbase.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.
-
-
-
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 aTestData
object.- Parameters:
query
- TestBase query to be processed.- Returns:
- Test data containing random values.
- Throws:
java.lang.IllegalArgumentException
- if the argument is codenull
; if any of the unknown variables in the TestBase query bindings is not represented by a bit vector.
-
-