Home
last modified time | relevance | path

Searched refs:etalon (Results 1 – 25 of 35) sorted by relevance

12

/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue52/
DLineBreakDooubleQuotedTest.java35 String etalon = "12345678901234567890\n\n123 456"; in testDoubleQuotedStyle() local
36 String output = yaml.dump(etalon); in testDoubleQuotedStyle()
40 assertEquals(etalon, parsed); in testDoubleQuotedStyle()
50 String etalon = "12345678901234567890\n\n123 456"; in testDoubleQuotedStyleNoLineSplit() local
51 String output = yaml.dump(etalon); in testDoubleQuotedStyleNoLineSplit()
55 assertEquals(etalon, parsed); in testDoubleQuotedStyleNoLineSplit()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/emitter/
DEmitterTest.java49 …String etalon = "\"aaa\": >-\n 0123456789 0123456789\n\n 0123456789 0123456789\n\"bbb\": >2\n\n … in testWriteFolded() local
50 assertEquals(etalon, output); in testWriteFolded()
62 …String etalon = "\"aaa\": |-\n 0123456789 0123456789 0123456789 0123456789\n\"bbb\": |2\n\n bla-… in testWriteLiteral() local
63 assertEquals(etalon, output); in testWriteLiteral()
75 …String etalon = "aaa: |-\n 0123456789 0123456789\n 0123456789 0123456789\nbbb: |2-\n\n bla-bla\… in testWritePlain() local
76 assertEquals(etalon, output); in testWritePlain()
91 …String etalon = "aaa: |-\n 0123456789 0123456789\n 0123456789 0123456789\nbbb: |2-\n\n bla-bla\… in testWritePlainPretty() local
92 assertEquals(etalon, output); in testWritePlainPretty()
104 …String etalon = "'aaa': '0123456789 0123456789\n\n 0123456789 0123456789'\n'bbb': '\n\n bla-bla'… in testWriteSingleQuoted() local
105 assertEquals(etalon, output); in testWriteSingleQuoted()
[all …]
DEmitterMultiLineTest.java54 …String etalon = "- |-\n first\n second\n third\n- |\n one\n two\n three\n- !!binary |-\n CA… in testWriteMultiLineList() local
55 assertEquals(etalon, output); in testWriteMultiLineList()
57 List<Object> parsed = (List<Object>) yaml.load(etalon); in testWriteMultiLineList()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue8/
DPrattleRepresenterTest.java30 …String etalon = "!!org.yaml.snakeyaml.issues.issue8.Person {firstName: Alan, hatSize: 9, lastName:… in test() local
31 assertEquals(etalon, yaml.dump(person)); in test()
32 assertEquals(etalon, yaml.dump(person)); in test()
40 …String etalon = "!!org.yaml.snakeyaml.issues.issue8.Person {firstName: Alan, hatSize: 9, lastName:… in test2beans() local
41 assertEquals(etalon, yaml.dump(person)); in test2beans()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/recursive/generics/
DHumanGenericsTest.java60 String etalon = Util.getLocalResource("recursive/generics/no-children-1.yaml"); in testNoChildren() local
61 assertEquals(etalon, output); in testNoChildren()
94 String etalon = Util.getLocalResource("recursive/generics/no-children-2.yaml"); in testNoChildren2() local
95 assertEquals(etalon, output); in testNoChildren2()
98 HumanGen father2 = (HumanGen) loader.loadAs(etalon, HumanGen.class); in testNoChildren2()
155 String etalon = Util.getLocalResource("recursive/generics/with-children.yaml"); in testChildren() local
156 assertEquals(etalon, output); in testChildren()
224 String etalon = Util.getLocalResource("recursive/generics/with-children-2.yaml"); in testChildren2() local
225 assertEquals(etalon, output); in testChildren2()
297 String etalon = Util.getLocalResource("recursive/generics/with-children-3.yaml"); in testChildren3() local
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue29/
DFlexibleScalarStyleTest.java57 String etalon = Util.getLocalResource("representer/scalar-style1.yaml"); in testNoFoldedScalar() local
58 assertEquals(etalon, output); in testNoFoldedScalar()
67 String etalon = Util.getLocalResource("representer/scalar-style2.yaml"); in testCustomScalarStyle() local
68 assertEquals(etalon, output); in testCustomScalarStyle()
78 String etalon = Util.getLocalResource("representer/scalar-style3.yaml"); in testCustomScalarStyleNoSplitLines() local
79 assertEquals(etalon, output); in testCustomScalarStyleNoSplitLines()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/recursive/
DHumanTest.java54 String etalon = Util.getLocalResource("recursive/no-children-1.yaml"); in testNoChildren() local
55 assertEquals(etalon, output); in testNoChildren()
83 String etalon = Util.getLocalResource("recursive/no-children-1-pretty.yaml"); in testNoChildrenPretty() local
84 assertEquals(etalon, output); in testNoChildrenPretty()
134 String etalon = Util.getLocalResource("recursive/with-children.yaml"); in testChildren() local
135 assertEquals(etalon, output); in testChildren()
207 String etalon = Util.getLocalResource("recursive/with-children-pretty.yaml"); in testChildrenPretty() local
208 assertEquals(etalon, output); in testChildrenPretty()
283 String etalon = Util.getLocalResource("recursive/with-children-2.yaml"); in testChildren2() local
284 assertEquals(etalon, output); in testChildren2()
[all …]
DHuman_WithArrayOfChildrenTest.java155 String etalon = Util.getLocalResource("recursive/with-childrenArray.yaml"); in testChildrenArray() local
156 assertEquals(etalon, output); in testChildrenArray()
167 String etalon = Util.getLocalResource("recursive/with-childrenArray-no-root-tag.yaml"); in testDumpChildrenArrayWithoutRootTag() local
168 assertEquals(etalon, output); in testDumpChildrenArrayWithoutRootTag()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue10/
DBasicDumpTest.java44 String etalon = Util.getLocalResource("javabeans/issue10-1.yaml"); in testTag() local
45 assertEquals(etalon.trim(), output.trim()); in testTag()
68 String etalon = Util.getLocalResource("javabeans/issue10-2.yaml"); in testTag2() local
69 assertEquals(etalon.trim(), output.trim()); in testTag2()
90 String etalon = Util.getLocalResource("javabeans/issue10-3.yaml"); in testTag3() local
91 assertEquals(etalon.trim(), output.trim()); in testTag3()
/external/snakeyaml/src/test/java/examples/collections/
DTypeSafeMapImplementationsTest.java47 String etalon = Util.getLocalResource("examples/map-bean-1.yaml"); in testDumpMap() local
48 assertEquals(etalon, output); in testDumpMap()
119 String etalon = Util.getLocalResource("examples/map-bean-2.yaml"); in testNoJavaBeanMap() local
120 assertEquals(etalon, output); in testNoJavaBeanMap()
145 String etalon = Util.getLocalResource("examples/map-recursive-1.yaml"); in testRecursiveNoJavaBeanMap1() local
146 assertEquals(etalon, output); in testRecursiveNoJavaBeanMap1()
169 String etalon = Util.getLocalResource("examples/map-recursive-2.yaml"); in testRecursiveNoJavaBeanProperties2() local
170 assertEquals(etalon, output); in testRecursiveNoJavaBeanProperties2()
DTypeSafeMap2Test.java45 String etalon = Util.getLocalResource("examples/map-bean-12.yaml"); in testDumpMap() local
46 assertEquals(etalon, output); in testDumpMap()
64 String etalon = Util.getLocalResource("examples/map-bean-13.yaml"); in testMap2() local
65 assertEquals(etalon, output); in testMap2()
68 MapBean2 parsed = beanLoader.loadAs(etalon, MapBean2.class); in testMap2()
DTypeSafeMapTest.java45 String etalon = Util.getLocalResource("examples/map-bean-10.yaml"); in testDumpMap() local
46 assertEquals(etalon, output); in testDumpMap()
63 String etalon = Util.getLocalResource("examples/map-bean-11.yaml"); in testDumpMap2() local
64 assertEquals(etalon, output); in testDumpMap2()
DTypeSafeSetImplementationsTest.java47 String etalon = Util.getLocalResource("examples/set-bean-1.yaml"); in testDumpSet() local
48 assertEquals(etalon, output); in testDumpSet()
66 String etalon = Util.getLocalResource("examples/set-bean-6.yaml"); in testDumpSet2() local
67 assertEquals(etalon, output); in testDumpSet2()
DListFileldBeanTest.java45 String etalon = Util.getLocalResource("examples/list-bean-1.yaml"); in testDumpList() local
46 assertEquals(etalon, output); in testDumpList()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue111/
DLongUriTest.java43 String etalon = "!"; in testLongURIEscape() local
45 etalon += "A"; in testLongURIEscape()
47 assertEquals(1025, etalon.length()); in testLongURIEscape()
48 assertEquals(etalon, scalar.getTag().toString()); in testLongURIEscape()
/external/snakeyaml/src/test/java/examples/jodatime/
DJodaTimeFlowStylesTest.java45 DateTime etalon = new DateTime(timestamp, DateTimeZone.UTC); in testLoadBeanWithBlockFlow() local
46 bean.setDate(etalon); in testLoadBeanWithBlockFlow()
102 assertEquals(etalon, parsed.getDate()); in testLoadBeanWithBlockFlow()
120 DateTime etalon = new DateTime(timestamp, DateTimeZone.UTC); in testLoadBeanWithAutoFlow() local
121 bean.setDate(etalon); in testLoadBeanWithAutoFlow()
132 assertEquals(etalon, parsed.getDate()); in testLoadBeanWithAutoFlow()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/javabeans/
DHouseTest.java53 String etalon = Util.getLocalResource("javabeans/house-dump1.yaml"); in testDump1() local
54 assertEquals(etalon, yaml); in testDump1()
85 String etalon = Util.getLocalResource("javabeans/house-dump3.yaml"); in testDump3() local
86 assertEquals(etalon, yaml); in testDump3()
133 String etalon = Util.getLocalResource("javabeans/house-dump2.yaml"); in testDump2() local
134 assertEquals(etalon, yaml); in testDump2()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/lowlevel/
DLowLevelApiTest.java42 String etalon = yaml.dump(list); in testLowLevel() local
49 yaml.compose(new StringReader(etalon)).toString(), node.toString()); in testLowLevel()
53 for (Event etalonEvent : yaml.parse(new StringReader(etalon))) { in testLowLevel()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/representer/
DRepresentTest.java31 CustomBean etalon = new CustomBean("A", 1); in testCustomRepresenter() local
32 String output = yaml.dump(etalon); in testCustomRepresenter()
37 assertEquals(etalon, bean); in testCustomRepresenter()
DDumpStackTraceTest.java61 String etalon = Util.getLocalResource("representer/stacktrace1.yaml"); in testJavaStackTraceWithoutTabs() local
63 assertEquals(etalon, result); in testJavaStackTraceWithoutTabs()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/emitter/template/
DVelocityTest.java57 String etalon = Util.getLocalResource("template/etalon2-template.yaml").trim(); in testTemplate1() local
58 assertEquals(etalon.length(), output.length()); in testTemplate1()
59 assertEquals(etalon, output); in testTemplate1()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/
DBinaryJavaBeanTest.java28 String etalon = "!!org.yaml.snakeyaml.BinaryBean\ndata: !!binary |-\n AQcJH0E=\nid: 1\n"; in testBeanTest() local
29 assertEquals(etalon, output); in testBeanTest()
DExample2_27Test.java38 String etalon = Util.getLocalResource("specification/example2_27_dumped.yaml"); in testExample_2_27() local
39 assertEquals(etalon, output); in testExample_2_27()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue99/
DYamlBase64Test.java75 int etalon = is.read(); in checkBytes() local
77 assertEquals(etalon, jpeg[i] + 256); in checkBytes()
79 assertEquals(etalon, jpeg[i]); in checkBytes()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/generics/
DGenericArrayTypeTest.java32 String etalon = "!!org.yaml.snakeyaml.generics.GenericArrayTypeTest$GenericArray\n" in testClasses() local
34 assertEquals(etalon, doc); in testClasses()

12