1 31 package test.pdfbox.cos; 32 33 import java.io.IOException ; 34 35 import junit.framework.Test; 36 import junit.framework.TestCase; 37 import junit.framework.TestSuite; 38 39 import org.pdfbox.cos.COSString; 40 41 47 public class TestCOSString extends TestCase 48 { 49 50 55 public TestCOSString( String name ) 56 { 57 super( name ); 58 } 59 60 65 public static Test suite() 66 { 67 return new TestSuite( TestCOSString.class ); 68 } 69 70 75 public static void main( String [] args ) 76 { 77 String [] arg = {TestCOSString.class.getName() }; 78 junit.textui.TestRunner.main( arg ); 79 } 80 81 86 public void testUnicode() throws IOException 87 { 88 String theString = "\u4e16"; 89 COSString string = new COSString( theString ); 90 assertTrue( string.getString().equals( theString ) ); 91 } 92 } | Popular Tags |