Java Code Examples for com.mysql.jdbc.StringUtils#getBytesWrapped()
The following examples show how to use
com.mysql.jdbc.StringUtils#getBytesWrapped() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StringRegressionTest.java From r-course with MIT License | 2 votes |
/** * Tests fix for BUG#64731 - StringUtils.getBytesWrapped throws StringIndexOutOfBoundsException. * * @throws Exception * if the test fails. */ public void testBug64731() throws Exception { byte[] data = StringUtils.getBytesWrapped("0f0f0702", '\'', '\'', null, "gbk", "latin1", false, null); assertTrue(StringUtils.toString(data), true); }
Example 2
Source File: StringRegressionTest.java From Komondor with GNU General Public License v3.0 | 2 votes |
/** * Tests fix for BUG#64731 - StringUtils.getBytesWrapped throws StringIndexOutOfBoundsException. * * @throws Exception * if the test fails. */ public void testBug64731() throws Exception { byte[] data = StringUtils.getBytesWrapped("0f0f0702", '\'', '\'', null, "gbk", "latin1", false, null); assertTrue(StringUtils.toString(data), true); }