Home
last modified time | relevance | path

Searched refs:yaml (Results 1 – 25 of 810) sorted by relevance

12345678910>>...33

/external/snakeyaml/src/test/java/org/yaml/snakeyaml/
DDumperOptionsTest.java16 package org.yaml.snakeyaml;
25 import org.yaml.snakeyaml.emitter.Emitter;
26 import org.yaml.snakeyaml.error.YAMLException;
27 import org.yaml.snakeyaml.nodes.Tag;
28 import org.yaml.snakeyaml.representer.Representer;
34 Yaml yaml = new Yaml(options); in testDefaultStyle() local
35 assertEquals("abc\n", yaml.dump("abc")); in testDefaultStyle()
37 assertEquals("'123'\n", yaml.dump("123")); in testDefaultStyle()
40 yaml = new Yaml(options); in testDefaultStyle()
41 assertEquals("\"123\"\n", yaml.dump("123")); in testDefaultStyle()
[all …]
DEnumTest.java16 package org.yaml.snakeyaml;
27 import org.yaml.snakeyaml.constructor.Constructor;
33 Yaml yaml = new Yaml(); in testDumpEnum() local
34 String output = yaml.dump(Suit.CLUBS); in testDumpEnum()
39 Yaml yaml = new Yaml(); in testDumpOverriddenToString() local
40 String output = yaml.dump(DumperOptions.FlowStyle.BLOCK); in testDumpOverriddenToString()
47 Yaml yaml = new Yaml(options); in testDumpEnumArray() local
48 String output = yaml.dump(Suit.values()); in testDumpEnumArray()
57 Yaml yaml = new Yaml(options); in testDumpEnumList() local
59 String output = yaml.dump(list); in testDumpEnumList()
[all …]
DYamlTest.java16 package org.yaml.snakeyaml;
22 import org.yaml.snakeyaml.error.YAMLException;
27 Yaml yaml = new Yaml(); in testSetNoName() local
28 assertTrue(yaml.toString().matches("Yaml:\\d+")); in testSetNoName()
32 Yaml yaml = new Yaml(); in testSetName() local
33 yaml.setName("REST"); in testSetName()
34 assertEquals("REST", yaml.getName()); in testSetName()
35 assertEquals("REST", yaml.toString()); in testSetName()
42 Yaml yaml = new Yaml(); in testOneDocument() local
44 Iterator<Object> loaded = yaml.loadAll(doc).iterator(); in testOneDocument()
[all …]
DYamlComposeTest.java16 package org.yaml.snakeyaml;
22 import org.yaml.snakeyaml.nodes.MappingNode;
23 import org.yaml.snakeyaml.nodes.Node;
24 import org.yaml.snakeyaml.nodes.NodeId;
25 import org.yaml.snakeyaml.nodes.ScalarNode;
31 Yaml yaml = new Yaml(); in testComposeManyDocuments() local
32 yaml.compose(new StringReader("abc: 56\n---\n123\n---\n456")); in testComposeManyDocuments()
41 Yaml yaml = new Yaml(); in testComposeFromReader() local
42 MappingNode node = (MappingNode) yaml.compose(new StringReader("abc: 56")); in testComposeFromReader()
50 Yaml yaml = new Yaml(); in testComposeAllFromReader() local
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/immutable/
DShapeImmutableTest.java16 package org.yaml.snakeyaml.immutable;
20 import org.yaml.snakeyaml.Util;
21 import org.yaml.snakeyaml.Yaml;
26 Yaml yaml = new Yaml(); in testColor() local
27 Color loaded = (Color) yaml.load("!!org.yaml.snakeyaml.immutable.Color BLACK"); in testColor()
32 Yaml yaml = new Yaml(); in testCode() local
33 Code loaded = (Code) yaml.load("!!org.yaml.snakeyaml.immutable.Code 123"); in testCode()
38 Yaml yaml = new Yaml(); in testSuperColor() local
39 SuperColor superColor = (SuperColor) yaml in testSuperColor()
45 Yaml yaml = new Yaml(); in testSuperColorFail() local
[all …]
DMoreImmutablesTest.java16 package org.yaml.snakeyaml.immutable;
27 import org.yaml.snakeyaml.DumperOptions;
28 import org.yaml.snakeyaml.Yaml;
33 Yaml yaml = new Yaml(new ImmutablesRepresenter()); in testInsets() local
35 String dump = yaml.dump(insets); in testInsets()
37 Object loaded = yaml.load(dump); in testInsets()
42 Yaml yaml = new Yaml(new ImmutablesRepresenter()); in testAwtColor() local
44 String dump = yaml.dump(color); in testAwtColor()
46 Object loaded = yaml.load(dump); in testAwtColor()
51 Yaml yaml = new Yaml(new ImmutablesRepresenter()); in testRectangle() local
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/emitter/
DEmitterTest.java16 package org.yaml.snakeyaml.emitter;
29 import org.yaml.snakeyaml.DumperOptions;
30 import org.yaml.snakeyaml.Yaml;
31 import org.yaml.snakeyaml.DumperOptions.FlowStyle;
32 import org.yaml.snakeyaml.DumperOptions.ScalarStyle;
33 import org.yaml.snakeyaml.events.DocumentStartEvent;
34 import org.yaml.snakeyaml.events.ImplicitTuple;
35 import org.yaml.snakeyaml.events.ScalarEvent;
36 import org.yaml.snakeyaml.events.StreamStartEvent;
47 Yaml yaml = new Yaml(options); in testWriteFolded() local
[all …]
DEmitterMultiLineTest.java16 package org.yaml.snakeyaml.emitter;
24 import org.yaml.snakeyaml.DumperOptions;
25 import org.yaml.snakeyaml.DumperOptions.FlowStyle;
26 import org.yaml.snakeyaml.Yaml;
32 Yaml yaml = new Yaml(); in testWriteMultiLineLiteral() local
33 String output = yaml.dump(plain); in testWriteMultiLineLiteral()
36 String parsed = (String) yaml.load(output); in testWriteMultiLineLiteral()
51 Yaml yaml = new Yaml(options); in testWriteMultiLineList() local
52 String output = yaml.dump(list); in testWriteMultiLineList()
57 List<Object> parsed = (List<Object>) yaml.load(etalon); in testWriteMultiLineList()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue124/
DDumpTest.java16 package org.yaml.snakeyaml.issues.issue124;
20 import org.yaml.snakeyaml.DumperOptions;
21 import org.yaml.snakeyaml.DumperOptions.FlowStyle;
22 import org.yaml.snakeyaml.Yaml;
23 import org.yaml.snakeyaml.nodes.Tag;
28 Yaml yaml = new Yaml(); in testDumperOptionsSideEffect() local
30 String output0 = yaml.dump(bean); in testDumperOptionsSideEffect()
34 String output1 = yaml.dumpAsMap(bean); in testDumperOptionsSideEffect()
37 String output2 = yaml.dump(bean); in testDumperOptionsSideEffect()
43 Yaml yaml = new Yaml(); in testDumperDifferentTag() local
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue183/
DNumberBeanTest.java16 package org.yaml.snakeyaml.issues.issue183;
20 import org.yaml.snakeyaml.Yaml;
29 Yaml yaml = new Yaml(); in testNumberBean() local
30 String dump = yaml.dump(number); in testNumberBean()
31 NumberBean loaded = yaml.loadAs(dump, NumberBean.class); in testNumberBean()
39 Yaml yaml = new Yaml(); in testNumberAsFloatInfinity() local
40 String dump = yaml.dump(number); in testNumberAsFloatInfinity()
41 NumberBean loaded = yaml.loadAs(dump, NumberBean.class); in testNumberAsFloatInfinity()
49 Yaml yaml = new Yaml(); in testNumberAsDoubleInfinity() local
50 String dump = yaml.dump(number); in testNumberAsDoubleInfinity()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/representer/
DDumpStackTraceTest.java16 package org.yaml.snakeyaml.representer;
20 import org.yaml.snakeyaml.DumperOptions;
21 import org.yaml.snakeyaml.Util;
22 import org.yaml.snakeyaml.Yaml;
27 Yaml yaml = new Yaml(); in testJavaStackTrace() local
29 String result = yaml.dump(input); in testJavaStackTrace()
31 assertEquals(result, yaml.dump(yaml.load(result))); in testJavaStackTrace()
37 Yaml yaml = new Yaml(options); in testJavaStackTraceWithNoSpecialCharacters() local
41 String result = yaml.dump(input); in testJavaStackTraceWithNoSpecialCharacters()
43 assertEquals(result, yaml.dump(yaml.load(result))); in testJavaStackTraceWithNoSpecialCharacters()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue9/
DNopropTest.java16 package org.yaml.snakeyaml.issues.issue9;
22 import org.yaml.snakeyaml.Yaml;
27 …String yaml = "--- !!org.yaml.snakeyaml.issues.issue9.BeanHolder\nbean : !!org.yaml.snakeyaml.issu… in testOK01() local
28 Iterator<Object> docs = new Yaml().loadAll(yaml).iterator(); in testOK01()
36 …String yaml = "--- !!org.yaml.snakeyaml.issues.issue9.BeanHolder\nbean : !!org.yaml.snakeyaml.issu… in testOK02() local
37 Iterator<Object> docs = new Yaml().loadAll(yaml).iterator(); in testOK02()
45 …String yaml = "--- !!org.yaml.snakeyaml.issues.issue9.BeanHolder\nbean : !!org.yaml.snakeyaml.issu… in testOK03() local
46 Iterator<Object> docs = new Yaml().loadAll(yaml).iterator(); in testOK03()
54 …String yaml = "--- !!org.yaml.snakeyaml.issues.issue9.BeanHolder\nbean : !!org.yaml.snakeyaml.issu… in testOK04() local
55 Iterator<Object> docs = new Yaml().loadAll(yaml).iterator(); in testOK04()
[all …]
/external/snakeyaml/src/test/java/examples/
DDiceExampleTest.java24 import org.yaml.snakeyaml.DumperOptions;
25 import org.yaml.snakeyaml.Yaml;
26 import org.yaml.snakeyaml.constructor.AbstractConstruct;
27 import org.yaml.snakeyaml.constructor.Constructor;
28 import org.yaml.snakeyaml.constructor.SafeConstructor;
29 import org.yaml.snakeyaml.nodes.Node;
30 import org.yaml.snakeyaml.nodes.ScalarNode;
31 import org.yaml.snakeyaml.nodes.Tag;
32 import org.yaml.snakeyaml.representer.Represent;
33 import org.yaml.snakeyaml.representer.Representer;
[all …]
DDumpExampleTest.java26 import org.yaml.snakeyaml.DumperOptions;
27 import org.yaml.snakeyaml.Yaml;
35 Yaml yaml = new Yaml(); in testDump() local
36 String output = yaml.dump(data); in testDump()
47 Yaml yaml = new Yaml(); in testDumpWriter() local
49 yaml.dump(data, writer); in testDumpWriter()
62 Yaml yaml = new Yaml(options); in testDumpMany() local
63 String result = yaml.dumpAll(docs.iterator()); in testDumpMany()
72 Yaml yaml = new Yaml(options); in testDumpCustomJavaClass() local
73 String output = yaml.dump(hero); in testDumpCustomJavaClass()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue306/
DUuidSupportTest.java16 package org.yaml.snakeyaml.issues.issue306;
19 import org.yaml.snakeyaml.DumperOptions;
20 import org.yaml.snakeyaml.Util;
21 import org.yaml.snakeyaml.Yaml;
22 import org.yaml.snakeyaml.nodes.Tag;
46 Yaml yaml = new Yaml(); in dumpAsString() local
47 yaml.addImplicitResolver(UUID_TAG, UUID_PATTERN, null); in dumpAsString()
48 String output = yaml.dump(str); in dumpAsString()
50 assertEquals(str + "\n", yaml.dump(uuid)); in dumpAsString()
55 Yaml yaml = new Yaml(); in loadAsUuid() local
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/constructor/
DBeanConstructorTest.java16 package org.yaml.snakeyaml.constructor;
22 import org.yaml.snakeyaml.DumperOptions;
23 import org.yaml.snakeyaml.Util;
24 import org.yaml.snakeyaml.Yaml;
25 import org.yaml.snakeyaml.error.YAMLException;
30 Yaml yaml = new Yaml(new Constructor(TestBean1.class)); in testPrimitivesConstructor() local
32 TestBean1 result = (TestBean1) yaml.load(document); in testPrimitivesConstructor()
61 TestBean1 result2 = (TestBean1) yaml.load(output); in testPrimitivesConstructor()
95 Yaml yaml = new Yaml(new Constructor(TestBean1.class)); in testCharacter() local
98 yaml.load(document); in testCharacter()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue67/
DNonAsciiCharsInClassNameTest.java16 package org.yaml.snakeyaml.issues.issue67;
20 import org.yaml.snakeyaml.Util;
21 import org.yaml.snakeyaml.Yaml;
22 import org.yaml.snakeyaml.nodes.Tag;
23 import org.yaml.snakeyaml.representer.Representer;
24 import org.yaml.snakeyaml.scanner.ScannerException;
33 Yaml yaml = new Yaml(); in testDump() local
34 String result = yaml.dump(obj); in testDump()
39 Yaml yaml = new Yaml(); in testLoad() local
40 Académico obj = (Académico) yaml.load(PREFIX + "Acad%C3%A9mico {id: 3, name: Foo bar}"); in testLoad()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue40/
DDogFoodBeanTest.java16 package org.yaml.snakeyaml.issues.issue40;
22 import org.yaml.snakeyaml.Yaml;
29 Yaml yaml = new Yaml(); in testOwnBigDecimal() local
30 String text = yaml.dump(input); in testOwnBigDecimal()
34 DogFoodBean output = (DogFoodBean) yaml.load(text); in testOwnBigDecimal()
41 Yaml yaml = new Yaml(); in testBigDecimalPrecision() local
42 String text = yaml.dump(input); in testBigDecimalPrecision()
45 DogFoodBean output = (DogFoodBean) yaml.load(text); in testBigDecimalPrecision()
52 Yaml yaml = new Yaml(); in testBigDecimalNoRootTag() local
53 String text = yaml.dumpAsMap(input); in testBigDecimalNoRootTag()
[all …]
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/
DYaml.java16 package org.yaml.snakeyaml;
29 import org.yaml.snakeyaml.DumperOptions.FlowStyle;
30 import org.yaml.snakeyaml.composer.Composer;
31 import org.yaml.snakeyaml.constructor.BaseConstructor;
32 import org.yaml.snakeyaml.constructor.Constructor;
33 import org.yaml.snakeyaml.emitter.Emitable;
34 import org.yaml.snakeyaml.emitter.Emitter;
35 import org.yaml.snakeyaml.error.YAMLException;
36 import org.yaml.snakeyaml.events.Event;
37 import org.yaml.snakeyaml.introspector.BeanAccess;
[all …]
/external/snakeyaml/src/test/java/org/pyyaml/
DPyTokensTest.java28 import org.yaml.snakeyaml.reader.StreamReader;
29 import org.yaml.snakeyaml.reader.UnicodeReader;
30 import org.yaml.snakeyaml.scanner.Scanner;
31 import org.yaml.snakeyaml.scanner.ScannerImpl;
32 import org.yaml.snakeyaml.tokens.AliasToken;
33 import org.yaml.snakeyaml.tokens.AnchorToken;
34 import org.yaml.snakeyaml.tokens.BlockEndToken;
35 import org.yaml.snakeyaml.tokens.BlockEntryToken;
36 import org.yaml.snakeyaml.tokens.BlockMappingStartToken;
37 import org.yaml.snakeyaml.tokens.BlockSequenceStartToken;
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue150/
DYamlLoadAsIssueTest.java16 package org.yaml.snakeyaml.issues.issue150;
32 import org.yaml.snakeyaml.Yaml;
33 import org.yaml.snakeyaml.constructor.AbstractConstruct;
34 import org.yaml.snakeyaml.constructor.Constructor;
35 import org.yaml.snakeyaml.nodes.MappingNode;
36 import org.yaml.snakeyaml.nodes.Node;
37 import org.yaml.snakeyaml.nodes.NodeTuple;
38 import org.yaml.snakeyaml.nodes.ScalarNode;
39 import org.yaml.snakeyaml.nodes.SequenceNode;
40 import org.yaml.snakeyaml.nodes.Tag;
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue55/
DYamlFieldAccessCollectionTest.java16 package org.yaml.snakeyaml.issues.issue55;
23 import org.yaml.snakeyaml.Util;
24 import org.yaml.snakeyaml.Yaml;
25 import org.yaml.snakeyaml.introspector.BeanAccess;
26 import org.yaml.snakeyaml.representer.Representer;
44 Yaml yaml = new Yaml(); in testYamlWithoutConfiguration() local
45 Map<String, Object> map = (Map<String, Object>) yaml.load(Util in testYamlWithoutConfiguration()
61 Yaml yaml = new Yaml(); in testYamlDefaultWithFeildAccess() local
62 yaml.setBeanAccess(BeanAccess.FIELD); in testYamlDefaultWithFeildAccess()
64 String serialized = yaml.dump(original); in testYamlDefaultWithFeildAccess()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue29/
DFlexibleScalarStyleTest.java16 package org.yaml.snakeyaml.issues.issue29;
23 import org.yaml.snakeyaml.DumperOptions;
24 import org.yaml.snakeyaml.DumperOptions.ScalarStyle;
25 import org.yaml.snakeyaml.Util;
26 import org.yaml.snakeyaml.Yaml;
27 import org.yaml.snakeyaml.nodes.Node;
28 import org.yaml.snakeyaml.nodes.ScalarNode;
29 import org.yaml.snakeyaml.representer.Representer;
38 Yaml yaml = new Yaml(options); in testLong() local
39 String result = yaml in testLong()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue311/
DBooleanEnumTest.java16 package org.yaml.snakeyaml.issues.issue311;
19 import org.yaml.snakeyaml.DumperOptions;
20 import org.yaml.snakeyaml.Yaml;
21 import org.yaml.snakeyaml.constructor.Constructor;
22 import org.yaml.snakeyaml.nodes.Node;
23 import org.yaml.snakeyaml.nodes.NodeId;
24 import org.yaml.snakeyaml.nodes.ScalarNode;
25 import org.yaml.snakeyaml.nodes.Tag;
26 import org.yaml.snakeyaml.representer.Represent;
27 import org.yaml.snakeyaml.representer.Representer;
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue154/
DMissingPropertyTest.java16 package org.yaml.snakeyaml.issues.issue154;
20 import org.yaml.snakeyaml.Yaml;
21 import org.yaml.snakeyaml.constructor.Constructor;
22 import org.yaml.snakeyaml.error.YAMLException;
23 import org.yaml.snakeyaml.representer.Representer;
27 private Yaml yaml; field in MissingPropertyTest
30 yaml = new Yaml(); in setUp()
38 TestBean bean = yaml.loadAs(doc, TestBean.class); in testPublicField()
49 yaml.loadAs(doc, TestBean.class); in testUnknownField()
63 yaml = new Yaml(new Constructor(), representer); in testSkipMissingProperties()
[all …]

12345678910>>...33