Examples of OracleSerialClob


Examples of oracle.jdbc.rowset.OracleSerialClob

        new OracleSerialClobNormaliser().normalise("Any Old Object");
    }

    @Test
    public void shouldThrowCorrectExceptionIfClobIsLargerThanMaximum() throws SQLException {
        OracleSerialClob clob = mock(OracleSerialClob.class);
       
        when(clob.length()).thenReturn(10001l);
        expectedEx.expect(UnsupportedOperationException.class);
        expectedEx.expectMessage("Clobs larger than 10000 bytes are not supported by DBFIT");
       
        new OracleSerialClobNormaliser().normalise(clob);
    }
View Full Code Here

Examples of oracle.jdbc.rowset.OracleSerialClob

        new OracleSerialClobNormaliser().normalise(clob);
    }

    @Test
    public void shouldReturnContentsOfClobIFAllOkay() throws SQLException {
        OracleSerialClob clob = mock(OracleSerialClob.class);
       
        when(clob.length()).thenReturn(Long.valueOf("CLOB contents".length()));
        when(clob.getSubString(1l, "CLOB contents".length())).thenReturn("CLOB contents");

        assertEquals("CLOB contents", new OracleSerialClobNormaliser().normalise(clob));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.