diff --git a/test/org/loklak/tools/UTF8Test.java b/test/org/loklak/tools/UTF8Test.java new file mode 100644 index 000000000..639d3d6df --- /dev/null +++ b/test/org/loklak/tools/UTF8Test.java @@ -0,0 +1,52 @@ +package org.loklak.tools; + +import org.loklak.tools.UTF8; +import org.junit.Test; +import static org.junit.Assert.assertEquals; +/** + * These unit-tests test org.loklak.tools.UTF8.java + */ +public class UTF8Test{ + + @Test + public void testGetBytes(){ + UTF8 utf8 = new UTF8(); + String str = "loklak-server"; + byte [] returnVal = utf8.getBytes(str); + String s = ""; + for(int i=0; i