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

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


    /**
     * @tests {@link javax.sql.rowset.serial.SQLOutputImpl#writeBlob(Blob)}
     */
    public void test_writeBlobLjava_sql_Blob() throws SQLException {
        Blob blob = new MockBlob();
        impl.writeBlob(blob);
        assertEquals(1, attr.size());
        assertTrue(attr.get(0) instanceof SerialBlob);

        impl.writeBlob(null);
View Full Code Here


    /**
     * @tests {@link javax.sql.rowset.serial.SQLInputImpl#readBlob()}
     */
    public void testReadBlob() throws SQLException {
        Blob blob = new MockBlob();
        Object[] attributes = new Object[] { blob };
        SQLInputImpl impl = new SQLInputImpl(attributes,
                new HashMap<String, Class<?>>());
        assertEquals(blob, impl.readBlob());

View Full Code Here

    /**
     * @tests {@link javax.sql.rowset.serial.SQLInputImpl#readBlob()}
     */
    public void testReadBlob() throws SQLException {
        Blob blob = new MockBlob();
        Object[] attributes = new Object[] { blob };
        SQLInputImpl impl = new SQLInputImpl(attributes,
                new HashMap<String, Class<?>>());
        assertEquals(blob, impl.readBlob());

View Full Code Here

    /**
     * @tests {@link javax.sql.rowset.serial.SQLOutputImpl#writeBlob(Blob)}
     */
    public void test_writeBlobLjava_sql_Blob() throws SQLException {
        Blob blob = new MockBlob();
        impl.writeBlob(blob);
        assertEquals(1, attr.size());
        assertTrue(attr.get(0) instanceof SerialBlob);

        impl.writeBlob(null);
View Full Code Here

        } catch (UnsupportedOperationException e) {
            // expected
        }

        try {
            resolver.updateBlob(100, new MockBlob());
            fail("should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
        try {
            resolver.updateBlob("not", new MockBlob());
            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.MockBlob

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.