* @tests {@link javax.sql.rowset.serial.SQLInputImpl#readCharacterStream()}
*/
public void testReadCharacterStream() throws SQLException {
Reader stream = new StringReader("abc");
Object[] attributes = new Object[] { stream };
SQLInputImpl impl = new SQLInputImpl(attributes,
new HashMap<String, Class<?>>());
assertEquals(stream, impl.readCharacterStream());
try {
impl.readCharacterStream();
fail("should throw SQLException");
} catch (SQLException e) {
// expected
}
attributes = new Object[] { null };
impl = new SQLInputImpl(attributes, new HashMap<String, Class<?>>());
assertNull(impl.readCharacterStream());
}