Class TestDataParser

  • @Component
    public class TestDataParser
    extends Object
    Parses the test data from the YAML file into a corresponding Java object.
    • Constructor Detail

      • TestDataParser

        public TestDataParser()
    • Method Detail

      • setYamlParser

        public void setYamlParser​(org.yaml.snakeyaml.Yaml yamlParser)
      • setTestDataObjectRegistry

        public void setTestDataObjectRegistry​(TestDataObjectRegistry registry)
      • parse

        public org.apache.commons.lang3.tuple.Pair<Object,​String> parse​( resource)
        Parse locators from file.
        resource - the resource to parse the locators from
        Pair the mapped Java object and the name of the entity (derived from the filename)