Class Autotest

    • Constructor Detail

      • Autotest

        public Autotest​(boolean activate,
                        String jsonInput,
                        List<String> expected)
        Classic constructor.
        Parameters:
        activate - is activated or not
        jsonInput - 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
      • getExpected

        public List<String> getExpected()
        Getter on expected result.
        Returns:
        the expected strings that should be in the rendered output