Package ru.ispras.testbase.generator
Interface DataGenerator
-
- All Known Implementing Classes:
DataGeneratorBase
public interface DataGenerator
TheDataGenerator
interface is to be supported by all data generators.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterator<TestData>
generate(TestBaseQuery query)
Generates data for the specified query.boolean
isSuitable(TestBaseQuery query)
Checks whether the data generator is capable of generating data for the specified query.
-
-
-
Method Detail
-
isSuitable
boolean isSuitable(TestBaseQuery query)
Checks whether the data generator is capable of generating data for the specified query.- Parameters:
query
- Query to be processed.- Returns:
true
if the query can be handled by the generator orfalse
otherwise.
-
generate
Iterator<TestData> generate(TestBaseQuery query)
Generates data for the specified query.- Parameters:
query
- Query to be processed.- Returns:
- Iterator over the generated test data.
-
-