Functions { public static String h(Object input) { return HtmlEscapeUtils.htmlEscape(input); } private  Functions(); static String h(Object input); static String u(String value); static String br(String value); static String cut(String value, int length); static String link(String value); static String mapToQuery(Map<String, ?> map); @Deprecated static String mapToQuery(Map<String, ?> map,
            BeanWrapper beanWrapper); static String query(Object params); static String js(String value); static String hjs(String input);  }
@Test public void testH() { assertThat(Functions.h(null), is("")); assertThat(Functions.h(""), is("")); assertThat(Functions.h("<a href=\"\">"), is( "&lt;a href=&quot;&quot;&gt;")); assertThat(Functions.h("<a href=''>"), is("&lt;a href=&#39;&#39;&gt;")); assertThat(Functions.h("&lt;"), is("&amp;lt;")); assertThat(Functions.h(new boolean[] { true, false }), is( "[true, false]")); assertThat(Functions.h(new int[] { 1, 2, 3 }), is("[1, 2, 3]")); assertThat(Functions.h(new short[] { 1, 2, 3 }), is("[1, 2, 3]")); assertThat(Functions.h(new long[] { 1, 2, 3 }), is("[1, 2, 3]")); assertThat(Functions.h(new byte[] { 1, 2, 3 }), is("[1, 2, 3]")); assertThat(Functions.h(new double[] { 1, 2, 3 }), is( "[1.0, 2.0, 3.0]")); assertThat(Functions.h(new float[] { 1, 2, 3 }), is("[1.0, 2.0, 3.0]")); assertThat(Functions.h(new char[] { 'a', 'b', 'c' }), is("[a, b, c]")); assertThat(Functions.h(new String[] { "a", "b", "c" }), is( "[a, b, c]")); }
@Test public void testH01() { Object input = null; String result = Functions.h(input); assertThat(result, is("")); }
@Test public void testH02() { String[] input = { "1", "a", "A" }; String result = Functions.h(input); assertThat(result, is(Arrays.toString((String[]) input))); }
@Test public void testH03() { boolean[] input = { true, false, true }; String result = Functions.h(input); assertThat(result, is(Arrays.toString((boolean[]) input))); }
@Test public void testH04() { char[] input = { '1', 'a', 'A' }; String result = Functions.h(input); assertThat(result, is(Arrays.toString((char[]) input))); }
@Test public void testH05() { int[] input = { 1, 5, 9 }; String result = Functions.h(input); assertThat(result, is(Arrays.toString((int[]) input))); }
@Test public void testH06() { long[] input = { 1L, 3L, 5L }; String result = Functions.h(input); assertThat(result, is(Arrays.toString((long[]) input))); }
@Test public void testH07() { byte[] input = new byte[] { 0, 2, 4 }; String result = Functions.h(input); assertThat(result, is(Arrays.toString((byte[]) input))); }
@Test public void testH08() { short[] input = new short[] { 3, 6, 9 }; String result = Functions.h(input); assertThat(result, is(Arrays.toString((short[]) input))); }
@Test public void testH09() { float[] input = { 3F, 6F, 9.5F }; String result = Functions.h(input); assertThat(result, is(Arrays.toString((float[]) input))); }
@Test public void testH10() { double[] input = { 1.1, 2.2, 3.3 }; String result = Functions.h(input); assertThat(result, is(Arrays.toString((double[]) input))); }
@Test public void testH11() { Object[] input = { 1.1, true, "ABC" }; String result = Functions.h(input); assertThat(result, is(Arrays.toString((Object[]) input))); }
@Test public void testH12() { Object input = "12345abcde&<>\"\'"; Object expct = "12345abcde&amp;&lt;&gt;&quot;&#39;"; String result = Functions.h(input); assertThat(result, is(expct)); }
@Test public void testH13() { Object input = "&<>\"\'"; Object expct = "&amp;&lt;&gt;&quot;&#39;"; String result = Functions.h(input); assertThat(result, is(expct)); }
@Test public void testH14() { Object input = "a>1"; Object expct = "a&gt;1"; String result = Functions.h(input); assertThat(result, is(expct)); }