@Test public void testConversionOfSpecialCharsToUnicodeCharsForXmlDownload() { String specialChars = "&#8322; &#945; &#946; &#947; &#948; &#178; &#176; &#9702; &#181; &#955; &#411; &#8805; &#8804; &#177; &#954; &#8495; &#922; < > &#8225;"; String unicodeChars = StringUtils.updateXMLDataForSpecialCharacters(specialChars); String expectedUnicodeChars = "\u2082 \u03B1 \u03B2 \u03B3 \u03B4 \u00B2 \u00B0 \u00B0 \u00B5 \u03BB \u03BB \u2265 \u2264 \u00B1 \u03BA \u212F \u03BA < > \u2021"; assertTrue(unicodeChars.equals(expectedUnicodeChars)); }
protected Object mapRow(ResultSet rs, int rownum) throws SQLException { return new Boolean(StringUtils.toBoolean((String) rs.getString(1))); }