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

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

        @Autowired
        public void setTestDataObjectRegistry​(TestDataObjectRegistry registry)
      • parse

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