@Test public void testConvertClobString() throws Exception { testConvertClobPrepare(); TypeHandlerUtils.convertClob(clob, "TIFF"); testConvertClobCheck(); }
@Test public void testConvertClobInputStream() throws Exception { testConvertClobPrepare(); TypeHandlerUtils.convertClob(clob, new ByteArrayInputStream("PNG".getBytes())); testConvertClobCheck(); }
@Test public void testConvertClobByte() throws Exception { testConvertClobPrepare(); TypeHandlerUtils.convertClob(clob, "JPEG".getBytes()); testConvertClobCheck(); }
@Test public void testConvertClobConnString() throws Exception { testConvertClobPrepare(); TypeHandlerUtils.convertClob(conn, "PCX"); // verify(conn, times(1)).createClob(); MappingUtils.invokeFunction( verify(conn, times(1)), "createClob", new Class[] {}, new Object[] {}); testConvertClobCheck(); }
@Test public void testConvertClobConnInputStream() throws Exception { testConvertClobPrepare(); TypeHandlerUtils.convertClob(conn, new ByteArrayInputStream("BMP".getBytes())); // verify(conn, times(1)).createClob(); MappingUtils.invokeFunction( verify(conn, times(1)), "createClob", new Class[] {}, new Object[] {}); testConvertClobCheck(); }