use of com.ibatis.sqlmap.client.SqlMapClient in project pinpoint by naver.
the class SqlMapClientIT method queryForMapShouldBeTraced.
@Test
public void queryForMapShouldBeTraced() throws Exception {
SqlMapClient sqlMapClient = new SqlMapClientImpl(super.mockSqlMapExecutorDelegate);
super.testAndVerifyQueryForMap(sqlMapClient);
}
use of com.ibatis.sqlmap.client.SqlMapClient in project pinpoint by naver.
the class SqlMapClientIT method queryForObjectShouldBeTraced.
@Test
public void queryForObjectShouldBeTraced() throws Exception {
SqlMapClient sqlMapClient = new SqlMapClientImpl(super.mockSqlMapExecutorDelegate);
super.testAndVerifyQueryForObject(sqlMapClient);
}
use of com.ibatis.sqlmap.client.SqlMapClient in project generator by mybatis.
the class MiscellaneousTest method testAnotherAwfulTableInsert.
@Test
public void testAnotherAwfulTableInsert() {
SqlMapClient sqlMap = getSqlMapClient();
try {
Anotherawfultable record = new Anotherawfultable();
record.setId(5);
record.setSelect("select");
record.setInsert("insert");
sqlMap.insert("MBGTEST_ANOTHERAWFULTABLE.insert", record);
Anotherawfultable key = new Anotherawfultable();
key.setId(5);
Anotherawfultable returnedRecord = (Anotherawfultable) sqlMap.queryForObject("MBGTEST_ANOTHERAWFULTABLE.selectByPrimaryKey", key);
assertEquals(record.getId(), returnedRecord.getId());
assertEquals(record.getSelect(), returnedRecord.getSelect());
assertEquals(record.getInsert(), returnedRecord.getInsert());
assertEquals(record.getUpdate(), returnedRecord.getUpdate());
assertEquals(record.getDelete(), returnedRecord.getDelete());
} catch (SQLException e) {
fail(e.getMessage());
}
}
use of com.ibatis.sqlmap.client.SqlMapClient in project pinpoint by naver.
the class SqlMapClientIT method deleteShouldBeTraced.
@Test
public void deleteShouldBeTraced() throws Exception {
SqlMapClient sqlMapClient = new SqlMapClientImpl(super.mockSqlMapExecutorDelegate);
super.testAndVerifyDelete(sqlMapClient);
}
use of com.ibatis.sqlmap.client.SqlMapClient in project pinpoint by naver.
the class SqlMapClientIT method methodCallWithNullSqlIdShouldOnlyTraceMethodName.
@Test
public void methodCallWithNullSqlIdShouldOnlyTraceMethodName() throws Exception {
SqlMapClient sqlMapClient = new SqlMapClientImpl(super.mockSqlMapExecutorDelegate);
super.testAndVerifyInsertWithNullSqlId(sqlMapClient);
}
Aggregations