aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-common/src/test/java/at/gv/egiz
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-common/src/test/java/at/gv/egiz')
-rw-r--r--pdf-as-common/src/test/java/at/gv/egiz/pdfas/common/test/utils/StringUtilsTest.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/pdf-as-common/src/test/java/at/gv/egiz/pdfas/common/test/utils/StringUtilsTest.java b/pdf-as-common/src/test/java/at/gv/egiz/pdfas/common/test/utils/StringUtilsTest.java
new file mode 100644
index 00000000..6c6ee654
--- /dev/null
+++ b/pdf-as-common/src/test/java/at/gv/egiz/pdfas/common/test/utils/StringUtilsTest.java
@@ -0,0 +1,22 @@
+package at.gv.egiz.pdfas.common.test.utils;
+
+import static org.junit.Assert.assertEquals;
+
+import java.io.UnsupportedEncodingException;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.junit.runners.BlockJUnit4ClassRunner;
+
+import at.gv.egiz.pdfas.common.utils.StringUtils;
+
+@RunWith(BlockJUnit4ClassRunner.class)
+public class StringUtilsTest {
+
+ @Test
+ public void checkTabulatorReplacing() throws UnsupportedEncodingException {
+ assertEquals("asdfsaf asdfsafsafwer", StringUtils.convertStringToPDFFormat("asdfsaf\u0009asdfsafsafwer"));
+
+ }
+
+}