Package javax.sql.rowset.serial

Examples of javax.sql.rowset.serial.SQLInputImpl.readShort()


     */
    public void testReadShort() throws SQLException {
        Object[] attributes = new Object[] { Short.valueOf("3") };
        SQLInputImpl impl = new SQLInputImpl(attributes,
                new HashMap<String, Class<?>>());
        assertEquals((short) 3, impl.readShort());

        try {
            impl.readShort();
            fail("should throw SQLException");
        } catch (SQLException e) {
View Full Code Here


        SQLInputImpl impl = new SQLInputImpl(attributes,
                new HashMap<String, Class<?>>());
        assertEquals((short) 3, impl.readShort());

        try {
            impl.readShort();
            fail("should throw SQLException");
        } catch (SQLException e) {
            // expected
        }
View Full Code Here

            // expected
        }

        attributes = new Object[] { null };
        impl = new SQLInputImpl(attributes, new HashMap<String, Class<?>>());
        assertEquals((short) 0, impl.readShort());
    }

    /**
     * @tests {@link javax.sql.rowset.serial.SQLInputImpl#readString()}
     */
 
View Full Code Here

     */
    public void testReadShort() throws SQLException {
        Object[] attributes = new Object[] { Short.valueOf("3") };
        SQLInputImpl impl = new SQLInputImpl(attributes,
                new HashMap<String, Class<?>>());
        assertEquals((short) 3, impl.readShort());

        try {
            impl.readShort();
            fail("should throw SQLException");
        } catch (SQLException e) {
View Full Code Here

        SQLInputImpl impl = new SQLInputImpl(attributes,
                new HashMap<String, Class<?>>());
        assertEquals((short) 3, impl.readShort());

        try {
            impl.readShort();
            fail("should throw SQLException");
        } catch (SQLException e) {
            // expected
        }
View Full Code Here

            // expected
        }

        attributes = new Object[] { null };
        impl = new SQLInputImpl(attributes, new HashMap<String, Class<?>>());
        assertEquals((short) 0, impl.readShort());
    }

    /**
     * @tests {@link javax.sql.rowset.serial.SQLInputImpl#readString()}
     */
 
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.