Functions { public static String u(String value) { if (value == null || value.isEmpty()) { return ""; } return extraEncodeQuery(UriUtils.encodeQueryParam(value, "UTF-8")); } 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 testU() { assertThat(Functions.u(null), is("")); assertThat(Functions.u(""), is("")); assertThat(Functions.u("あいうえお"), is( "%E3%81%82%E3%81%84%E3%81%86%E3%81%88%E3%81%8A")); assertThat(Functions.u("http: "http: assertThat(Functions.u("http: "http: }
@Test public void testU_NoEncodingSymb() { assertThat(Functions.u("/?:@-._~!$'()*,;"), is("/?:@-._~!$'()*,;")); }
@Test public void testU_ALPHA() { assertThat(Functions.u("a"), is("a")); }
@Test public void testU_DIGIT() { assertThat(Functions.u("0"), is("0")); }
@Test public void testU_EncodingDelimiter() { assertThat(Functions.u("+"), is("%2B")); assertThat(Functions.u("="), is("%3D")); assertThat(Functions.u("&"), is("%26")); }
@Test public void testU_EncodingChar() { assertThat(Functions.u("%"), is("%25")); assertThat(Functions.u("あ"), is("%E3%81%82")); assertThat(Functions.u("\n"), is("%0A")); }
@Test public void testU_Space() { assertThat(Functions.u(" "), is("%20")); }