Searched refs:yamlParser (Results 1 – 2 of 2) sorted by relevance
33 Yaml yamlParser = new Yaml(new Constructor(MyCompositeObject.class)); in testParameterisedTypeLoading() local34 MyCompositeObject obj = (MyCompositeObject) yamlParser.load(getInput()); in testParameterisedTypeLoading()45 Yaml yamlParser = new Yaml(); in testJavaBeanLoader() local46 MyCompositeObject obj = yamlParser.loadAs(getInput(), MyCompositeObject.class); in testJavaBeanLoader()
129 final Yaml yamlParser = new Yaml(new OptionalRepresenter()); in testOptionaStringLoad() local136 final Person pFromStr = yamlParser.loadAs(yamlStr, Person.class); in testOptionaStringLoad()144 final Yaml yamlParser = new Yaml(new OptionalRepresenter()); in testOptionalDumpLoad() local151 String pDump = yamlParser.dump(expectedPerson); in testOptionalDumpLoad()153 final Person pFromDump = yamlParser.loadAs(pDump, Person.class); in testOptionalDumpLoad()