1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.yaml.snakeyaml.tokens;
17
18 import junit.framework.TestCase;
19
20 import org.yaml.snakeyaml.error.Mark;
21 import org.yaml.snakeyaml.tokens.Token.ID;
22
23 public class BlockEndTokenTest extends TestCase {
24
25 public void testGetArguments() {
26 Mark mark = new Mark("test1", 0, 0, 0, "*The first line.\nThe last line.", 0);
27 BlockEndToken token = new BlockEndToken(mark, mark);
28 assertEquals("", token.getArguments());
29 }
30
31 public void testGetTokenId() {
32 Mark mark = new Mark("test1", 0, 0, 0, "*The first line.\nThe last line.", 0);
33 BlockEndToken token = new BlockEndToken(mark, mark);
34 assertEquals(ID.BlockEnd, token.getTokenId());
35 }
36 }