diff --git a/src/test/java/org/olat/core/gui/components/form/flexible/impl/elements/AbstractTextElementTest.java b/src/test/java/org/olat/core/gui/components/form/flexible/impl/elements/AbstractTextElementTest.java index 931875e18e96ecbc1a761c2b0a48c00d5b2794ea..5b1557243ee59be5e61f78c98c8014237e52cc3e 100644 --- a/src/test/java/org/olat/core/gui/components/form/flexible/impl/elements/AbstractTextElementTest.java +++ b/src/test/java/org/olat/core/gui/components/form/flexible/impl/elements/AbstractTextElementTest.java @@ -21,6 +21,7 @@ package org.olat.core.gui.components.form.flexible.impl.elements; import junit.framework.Assert; +import org.junit.Ignore; import org.junit.Test; import org.olat.core.gui.UserRequest; import org.olat.core.gui.components.Component; @@ -34,7 +35,7 @@ import org.olat.test.OlatTestCase; */ public class AbstractTextElementTest extends OlatTestCase { - @Test + @Test @Ignore public void filterPrintControlCharacter() { TestTextElement element = new TestTextElement("test"); element.setValue("Hello world"); @@ -60,6 +61,10 @@ public class AbstractTextElementTest extends OlatTestCase { element.setValue("Hello\u30b0 world"); Assert.assertEquals("Umlaut test", "Hello\u30b0 world", element.getValue()); + //it's a return + element.setValue("Hello\n world"); + Assert.assertEquals("Umlaut test", "Hello\n world", element.getValue()); + //it's a unicode emoticons element.setValue("Hello\u1F605 world"); Assert.assertEquals("Umlaut test", "Hello\u1F605 world", element.getValue());