getSqlMapClientTemplate().delete("com.alibaba.cobar.client.entities.Follower.deleteByName",
f, 2);
fail("only one row will be affected in fact.");
} catch (DataAccessException e) {
assertTrue(e instanceof JdbcUpdateAffectedIncorrectNumberOfRowsException);
JdbcUpdateAffectedIncorrectNumberOfRowsException ex = (JdbcUpdateAffectedIncorrectNumberOfRowsException) e;
assertEquals(1, ex.getActualRowsAffected());
}
// although JdbcUpdateAffectedIncorrectNumberOfRowsException is raised, but the delete does performed successfully.
verifyEntityNonExistenceOnSpecificDataSource(confirmSQL, jt1m);
verifyEntityNonExistenceOnSpecificDataSource(confirmSQL, jt1s);
verifyEntityNonExistenceOnSpecificDataSource(confirmSQL, jt2m);