Package org.apache.harmony.sql.tests.javax.sql.rowset

Examples of org.apache.harmony.sql.tests.javax.sql.rowset.MockClob


    /**
     * @tests {@link javax.sql.rowset.serial.SQLOutputImpl#writeClob(Clob)}
     */
    public void test_writeClobLjava_sql_Clob() throws SQLException {
        Clob clob = new MockClob();
        impl.writeClob(clob);
        assertEquals(1, attr.size());
        assertTrue(attr.get(0) instanceof SerialClob);
    }
View Full Code Here


    /**
     * @tests {@link javax.sql.rowset.serial.SQLInputImpl#readClob()}
     */
    public void testReadClob() throws SQLException {
        Clob clob = new MockClob();
        Object[] attributes = new Object[] { clob };
        SQLInputImpl impl = new SQLInputImpl(attributes,
                new HashMap<String, Class<?>>());
        assertEquals(clob, impl.readClob());

View Full Code Here

    /**
     * @tests {@link javax.sql.rowset.serial.SQLInputImpl#readClob()}
     */
    public void testReadClob() throws SQLException {
        Clob clob = new MockClob();
        Object[] attributes = new Object[] { clob };
        SQLInputImpl impl = new SQLInputImpl(attributes,
                new HashMap<String, Class<?>>());
        assertEquals(clob, impl.readClob());

View Full Code Here

    /**
     * @tests {@link javax.sql.rowset.serial.SQLOutputImpl#writeClob(Clob)}
     */
    public void test_writeClobLjava_sql_Clob() throws SQLException {
        Clob clob = new MockClob();
        impl.writeClob(clob);
        assertEquals(1, attr.size());
        assertTrue(attr.get(0) instanceof SerialClob);
    }
View Full Code Here

            fail("should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
        try {
            resolver.updateClob(100, new MockClob());
            fail("should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
        try {
            resolver.updateClob("not", new MockClob());
            fail("should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
        try {
View Full Code Here

TOP

Related Classes of org.apache.harmony.sql.tests.javax.sql.rowset.MockClob

Copyright © 2018 www.massapicom. 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.