OSDN Git Service

ab4af2e2be7c61ac0a34f21ec50adcfd09b0980f
[jindolf/JinParser.git] / src / test / java / jp / sourceforge / jindolf / parser / ContentBuilderUCS2Test.java
1 /*
2  * License : The MIT License
3  * Copyright(c) 2010 olyutorskii
4  */
5
6 package jp.sourceforge.jindolf.parser;
7
8 import org.junit.After;
9 import org.junit.AfterClass;
10 import org.junit.Before;
11 import org.junit.BeforeClass;
12 import org.junit.Test;
13 import static org.junit.Assert.*;
14
15 /**
16  *
17  */
18 public class ContentBuilderUCS2Test {
19
20     public ContentBuilderUCS2Test() {
21     }
22
23     @BeforeClass
24     public static void setUpClass() throws Exception{
25     }
26
27     @AfterClass
28     public static void tearDownClass() throws Exception{
29     }
30
31     @Before
32     public void setUp() {
33     }
34
35     @After
36     public void tearDown() {
37     }
38
39     /**
40      * Test of charToUTF8 method, of class ContentBuilderUCS2.
41      */
42     @Test
43     public void testCharToUTF16(){
44         System.out.println("charToUTF16");
45
46         char ch;
47         byte[] result;
48         
49         ch = '\ud844';
50         result = ContentBuilderUCS2.charToUTF16(ch);
51
52         assertEquals(2, result.length);
53
54         return;
55     }
56
57 }