use of com.ibatis.sqlmap.engine.impl.SqlMapClientImpl in project druid by alibaba.
the class SqlMapSessionWrapperTest method test_wrap.
@SuppressWarnings("deprecation")
public void test_wrap() throws Exception {
SqlMapClientImpl client = (SqlMapClientImpl) context.getBean("master-sqlMapClient");
Assert.assertNotNull(client);
SqlMapSessionImpl session = new SqlMapSessionImpl(client);
SqlMapSessionWrapper wrapper = new SqlMapSessionWrapper(client, session);
wrapper.startTransaction();
wrapper.commitTransaction();
wrapper.getDataSource();
wrapper.getCurrentConnection();
wrapper.getUserConnection();
wrapper.close();
}
use of com.ibatis.sqlmap.engine.impl.SqlMapClientImpl 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.engine.impl.SqlMapClientImpl 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);
}
use of com.ibatis.sqlmap.engine.impl.SqlMapClientImpl in project pinpoint by naver.
the class SqlMapClientIT method updateShouldBeTraced.
@Test
public void updateShouldBeTraced() throws Exception {
SqlMapClient sqlMapClient = new SqlMapClientImpl(super.mockSqlMapExecutorDelegate);
super.testAndVerifyUpdate(sqlMapClient);
}
use of com.ibatis.sqlmap.engine.impl.SqlMapClientImpl in project pinpoint by naver.
the class SqlMapSessionIT method setUp.
@Before
public void setUp() throws Exception {
super.setUp();
this.sqlMapClient = new SqlMapClientImpl(super.mockSqlMapExecutorDelegate);
}
Aggregations