jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ago...@apache.org
Subject svn commit: r1807052 - /jmeter/trunk/test/src/org/apache/jmeter/functions/TestSimpleFunctions.java
Date Sat, 02 Sep 2017 14:44:25 GMT
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("&gt;&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'>"));



Mime
View raw message