Package com.indeed.proctor.common
Class SpecificationGenerator
- java.lang.Object
-
- com.indeed.proctor.common.SpecificationGenerator
-
public class SpecificationGenerator extends java.lang.Objectinfers a specification from an actual testDefinition. Buckets need to have compatible payloads because code generation generates typesafe payload accessors
-
-
Constructor Summary
Constructors Constructor Description SpecificationGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestSpecificationgenerateSpecification(TestDefinition testDefinition)Generates a usable test specification for a given test definition Uses the bucket with smallest value as the fallback value
-
-
-
Method Detail
-
generateSpecification
@Nonnull public TestSpecification generateSpecification(@Nonnull TestDefinition testDefinition)
Generates a usable test specification for a given test definition Uses the bucket with smallest value as the fallback value- Parameters:
testDefinition- aTestDefinition- Returns:
- a
TestSpecificationwhich corresponding to given test definition.
-
-