Package javax.sql.rowset.serial

Examples of javax.sql.rowset.serial.SerialDatalink


public class SerialDatalinkTest extends TestCase {
    public void testConstructor() throws Exception {

        URL url = new URL("http://www.someurl.com");
        new SerialDatalink(url);

        try {
            new SerialDatalink(null);
            fail("should throw SerialException");
        } catch (SerialException e) {
            // expected
        }
    }
View Full Code Here


        }
    }

    public void testGetDatalink() throws Exception {
        URL url = new URL("http://www.someurl.com");
        SerialDatalink sdl = new SerialDatalink(url);
        URL dataLink = sdl.getDatalink();
        assertEquals(url, dataLink);
        assertNotSame(url, dataLink);
    }
View Full Code Here

                } else if (obj instanceof Clob) {
                    obj = new SerialClob((Clob) obj);
                } else if (obj instanceof Ref) {
                    obj = new SerialRef((Ref) obj);
                } else if (obj instanceof URL) {
                    obj = new SerialDatalink((URL) obj);
                }
                columnData[i] = obj;
            }

            CachedRow currentRow = new CachedRow(columnData);
View Full Code Here

    /**
     * @tests {@link javax.sql.rowset.serial.SQLInputImpl#readURL()}
     */
    public void testReadURL() throws SQLException, MalformedURLException {
        URL url = new URL("http://www.apache.org");
        SerialDatalink link = new SerialDatalink(url);
        Object[] attributes = new Object[] { link };
        SQLInputImpl impl = new SQLInputImpl(attributes,
                new HashMap<String, Class<?>>());
        try {
            impl.readURL();
View Full Code Here

TOP

Related Classes of javax.sql.rowset.serial.SerialDatalink

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.