Author: agomes Date: Sat Sep 2 14:44:25 2017 New Revision: 1807052 URL: http://svn.apache.org/viewvc?rev=1807052&view=rev Log: Add 2 unitary test to UnEscapeHtml function
Modified: jmeter/trunk/test/src/org/apache/jmeter/functions/TestSimpleFunctions.java Modified: jmeter/trunk/test/src/org/apache/jmeter/functions/TestSimpleFunctions.java URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/functions/TestSimpleFunctions.java?rev=1807052&r1=1807051&r2=1807052&view=diff ============================================================================== --- jmeter/trunk/test/src/org/apache/jmeter/functions/TestSimpleFunctions.java (original) +++ jmeter/trunk/test/src/org/apache/jmeter/functions/TestSimpleFunctions.java Sat Sep 2 14:44:25 2017 @@ -132,6 +132,24 @@ public class TestSimpleFunctions extends } @Test + public void testUnEscapeHtml2() throws Exception { + AbstractFunction function = new UnEscapeHtml(); + params.add(new CompoundVariable("<Français>")); + function.setParameters(params); + String ret = function.execute(result, null); + assertEquals("<Français>", ret); + } + + @Test + public void testUnEscapeHtml3() throws Exception { + AbstractFunction function = new UnEscapeHtml(); + params.add(new CompoundVariable(">&zzzz;x")); + function.setParameters(params); + String ret = function.execute(result, null); + assertEquals(">&zzzz;x", ret); + } + + @Test public void testEscapeXml() throws Exception { AbstractFunction function = new EscapeXml(); params.add(new CompoundVariable("\"bread\" & <'butter'>"));