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

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


     * @tests {@link javax.sql.rowset.serial.SQLInputImpl#readNClob()}
     *
     * @since 1.6
     */
    public void testReadNClob() throws SQLException {
        NClob nclob = new MockNClob();
        Object[] attributes = new Object[] { null, nclob };
        SQLInputImpl impl = new SQLInputImpl(attributes,
                new HashMap<String, Class<?>>());
        try {
            impl.readNClob();
View Full Code Here


        } catch (UnsupportedOperationException e) {
            // expected
        }

        try {
            impl.writeNClob(new MockNClob());
            fail("should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
    }
View Full Code Here

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

TOP

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

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.