Package org.mozilla.zest.core.v1
Class ZestAssignRandomInteger
- java.lang.Object
-
- org.mozilla.zest.core.v1.ZestElement
-
- org.mozilla.zest.core.v1.ZestStatement
-
- org.mozilla.zest.core.v1.ZestAssignment
-
- org.mozilla.zest.core.v1.ZestAssignRandomInteger
-
public class ZestAssignRandomInteger extends ZestAssignment
The Class ZestTransformRndIntReplace assigned a random integer to the specified variable.
-
-
Field Summary
-
Fields inherited from class org.mozilla.zest.core.v1.ZestElement
JSON_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ZestAssignRandomInteger()Instantiates a new zest assign random integer.ZestAssignRandomInteger(String variableName)Instantiates a new zest assign random integer.ZestAssignRandomInteger(String variableName, int minInt, int maxInt)Instantiates a new zest assign random integer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringassign(ZestResponse response, ZestRuntime runtime)Invoke.ZestAssignRandomIntegerdeepCopy()Deep copy.intgetMaxInt()Gets the max int.intgetMinInt()Gets the min int.voidsetMaxInt(int maxInt)Sets the max int.voidsetMinInt(int minInt)Sets the min int.-
Methods inherited from class org.mozilla.zest.core.v1.ZestAssignment
getVariableName, isPassive, isSameSubclass, setVariableName
-
Methods inherited from class org.mozilla.zest.core.v1.ZestStatement
getIndex, getNext, getPrevious, init, insertAfter, insertBefore, isEnabled, remove, setEnabled, setNext, setPrev
-
Methods inherited from class org.mozilla.zest.core.v1.ZestElement
getElementType, setElementType
-
-
-
-
Constructor Detail
-
ZestAssignRandomInteger
public ZestAssignRandomInteger()
Instantiates a new zest assign random integer.
-
ZestAssignRandomInteger
public ZestAssignRandomInteger(String variableName)
Instantiates a new zest assign random integer.- Parameters:
variableName- the variable name
-
ZestAssignRandomInteger
public ZestAssignRandomInteger(String variableName, int minInt, int maxInt)
Instantiates a new zest assign random integer.- Parameters:
variableName- the variable nameminInt- the min intmaxInt- the max int
-
-
Method Detail
-
assign
public String assign(ZestResponse response, ZestRuntime runtime)
Description copied from class:ZestAssignmentInvoke.- Specified by:
assignin classZestAssignment- Parameters:
response- the response- Returns:
- the string
-
deepCopy
public ZestAssignRandomInteger deepCopy()
Description copied from class:ZestElementDeep copy.- Specified by:
deepCopyin classZestStatement- Returns:
- the zest element
-
getMinInt
public int getMinInt()
Gets the min int.- Returns:
- the min int
-
setMinInt
public void setMinInt(int minInt)
Sets the min int.- Parameters:
minInt- the new min int
-
getMaxInt
public int getMaxInt()
Gets the max int.- Returns:
- the max int
-
setMaxInt
public void setMaxInt(int maxInt)
Sets the max int.- Parameters:
maxInt- the new max int
-
-