1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.yaml.snakeyaml.events;
17
18 import junit.framework.TestCase;
19
20 public class ScalarEventTest extends TestCase {
21
22 public void testToString() {
23 ScalarEvent event = new ScalarEvent("a2", "str", new ImplicitTuple(true, true), "text",
24 null, null, '"');
25 assertEquals(
26 "<org.yaml.snakeyaml.events.ScalarEvent(anchor=a2, tag=str, implicit=[true, true], value=text)>",
27 event.toString());
28 }
29
30 public void testNotEqual() {
31 ScalarEvent event = new ScalarEvent("a2", "str", new ImplicitTuple(true, true), "text",
32 null, null, '"');
33 assertFalse(event.equals(event.toString()));
34 }
35 }