Package org.rosaenlg.lib
Class Autotest
- java.lang.Object
-
- org.rosaenlg.lib.Autotest
-
public class Autotest extends Object
Autotest structure.- Author:
- Ludan Stoecklé [email protected]
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getActivate()
Getter on activate.List<String>
getExpected()
Getter on expected result.String
getJsonInput()
Getter on jsonInput.
-
-
-
Constructor Detail
-
Autotest
public Autotest(boolean activate, String jsonInput, List<String> expected)
Classic constructor.- Parameters:
activate
- is activated or notjsonInput
- input for the text (String containing JSON)expected
- the rendered result should contain each of those String
-
Autotest
public Autotest(org.json.JSONObject jsonConf)
Constructor from a JSON snippet.Will try to get each parameter (activate, input, expected) from the JSON snippet.
- Parameters:
jsonConf
- JSON snippet containing the parameters.
-
-
Method Detail
-
getActivate
public boolean getActivate()
Getter on activate.- Returns:
- autotest is activated or not
-
getJsonInput
public String getJsonInput()
Getter on jsonInput.- Returns:
- the JSON input for the auto test
-
-