Search in sources :

Example 11 with NClobProxy

use of com.alibaba.druid.proxy.jdbc.NClobProxy in project druid by alibaba.

the class FilterChainTest_NClob_2 method test_getObject.

public void test_getObject() throws Exception {
    FilterChainImpl chain = new FilterChainImpl(dataSource);
    Clob clob = (Clob) chain.callableStatement_getObject(statement, 1);
    Assert.assertTrue(clob instanceof NClobProxy);
    Assert.assertEquals(1, invokeCount);
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl) NClobProxy(com.alibaba.druid.proxy.jdbc.NClobProxy) MockNClob(com.alibaba.druid.mock.MockNClob) Clob(java.sql.Clob)

Example 12 with NClobProxy

use of com.alibaba.druid.proxy.jdbc.NClobProxy in project druid by alibaba.

the class FilterChainTest_NClob_2 method test_getObject_1.

public void test_getObject_1() throws Exception {
    FilterChainImpl chain = new FilterChainImpl(dataSource);
    Clob clob = (Clob) chain.callableStatement_getObject(statement, "1");
    Assert.assertTrue(clob instanceof NClobProxy);
    Assert.assertEquals(1, invokeCount);
}
Also used : FilterChainImpl(com.alibaba.druid.filter.FilterChainImpl) NClobProxy(com.alibaba.druid.proxy.jdbc.NClobProxy) MockNClob(com.alibaba.druid.mock.MockNClob) Clob(java.sql.Clob)

Aggregations

FilterChainImpl (com.alibaba.druid.filter.FilterChainImpl)12 MockNClob (com.alibaba.druid.mock.MockNClob)12 NClobProxy (com.alibaba.druid.proxy.jdbc.NClobProxy)12 Clob (java.sql.Clob)12 ResultSetProxyImpl (com.alibaba.druid.proxy.jdbc.ResultSetProxyImpl)6