Mercurial > stress-tester
changeset 1160:2d5c66bd2224
DateTimeGenerator minor
author | Devel 2 |
---|---|
date | Mon, 15 Jun 2020 14:37:41 +0200 |
parents | 2f509607b05d |
children | d27ca8daec8a |
files | stress-tester/src/main/java/com/passus/st/generator/DateTimeGenerator.java |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/generator/DateTimeGenerator.java Mon Jun 15 13:30:16 2020 +0200 +++ b/stress-tester/src/main/java/com/passus/st/generator/DateTimeGenerator.java Mon Jun 15 14:37:41 2020 +0200 @@ -8,7 +8,6 @@ import com.passus.config.schema.NodeDefinition; import com.passus.config.schema.NodeDefinitionCreator; import com.passus.config.schema.ValueNodeDefinition; -import com.passus.config.validation.DoubleValidator; import com.passus.st.config.DateTimeTransformer; import com.passus.st.plugin.PluginConstants; import org.joda.time.DateTime; @@ -133,13 +132,12 @@ @Override public NodeDefinition create() { - ValueNodeDefinition lengthDef = valueDef(Object.class, new DateTimeTransformer()) - .addValidator(DoubleValidator.GREATER_EQUAL_ZERO); + ValueNodeDefinition dateDef = valueDef(Object.class, new DateTimeTransformer()); return mapDef( tupleDef("returnType", enumDef(ReturnType.class)).setRequired(false), - tupleDef("start", lengthDef).setRequired(false), - tupleDef("end", lengthDef).setRequired(false), + tupleDef("start", dateDef).setRequired(false), + tupleDef("end", dateDef).setRequired(false), tupleDef("format", valueDef()).setRequired(false) ).setCanBeEmpty(true); }