Search in sources :

Example 1 with SerialStruct

use of javax.sql.rowset.serial.SerialStruct in project jdk8u_jdk by JetBrains.

the class SerialStructTests method test07.

/*
     * clone() a SerialStruct and check that it is equal to the
     * object it was cloned from
     */
@Test
public void test07() throws Exception {
    SerialStruct ss = new SerialStruct(struct, map);
    SerialStruct ss1 = (SerialStruct) ss.clone();
    assertTrue(ss.equals(ss1));
}
Also used : SerialStruct(javax.sql.rowset.serial.SerialStruct) Test(org.testng.annotations.Test) BaseTest(util.BaseTest)

Example 2 with SerialStruct

use of javax.sql.rowset.serial.SerialStruct in project jdk8u_jdk by JetBrains.

the class SerialStructTests method test02.

/*
     * Validate that getSQLTypeName() returns the same SQLType specified by
     * the Struct used to create the object
     */
@Test
public void test02() throws Exception {
    SerialStruct ss = new SerialStruct(hero, map);
    assertEquals(ss.getSQLTypeName(), sqlType);
}
Also used : SerialStruct(javax.sql.rowset.serial.SerialStruct) Test(org.testng.annotations.Test) BaseTest(util.BaseTest)

Example 3 with SerialStruct

use of javax.sql.rowset.serial.SerialStruct in project jdk8u_jdk by JetBrains.

the class SerialStructTests method test05.

/*
     * Validate that getAttributes() returns the
     same attributes specified by
     * the Struct used to create the object
     */
@Test
public void test05() throws Exception {
    SerialStruct ss = new SerialStruct(struct, map);
    assertTrue(Arrays.equals(attributes, ss.getAttributes(map)));
}
Also used : SerialStruct(javax.sql.rowset.serial.SerialStruct) Test(org.testng.annotations.Test) BaseTest(util.BaseTest)

Example 4 with SerialStruct

use of javax.sql.rowset.serial.SerialStruct in project jdk8u_jdk by JetBrains.

the class SerialStructTests method test06.

/*
     * Validate that getAttributes() returns the same attributes specified by
     * the Struct used to create the object
     */
@Test
public void test06() throws Exception {
    SerialStruct ss = new SerialStruct(hero, map);
    assertTrue(Arrays.equals(attributes, ss.getAttributes(map)));
}
Also used : SerialStruct(javax.sql.rowset.serial.SerialStruct) Test(org.testng.annotations.Test) BaseTest(util.BaseTest)

Example 5 with SerialStruct

use of javax.sql.rowset.serial.SerialStruct in project jdk8u_jdk by JetBrains.

the class SerialStructTests method test01.

/*
     * Validate that getSQLTypeName() returns the same SQLType specified by
     * the Struct used to create the object
     */
@Test
public void test01() throws Exception {
    SerialStruct ss = new SerialStruct(struct, map);
    assertEquals(ss.getSQLTypeName(), sqlType);
}
Also used : SerialStruct(javax.sql.rowset.serial.SerialStruct) Test(org.testng.annotations.Test) BaseTest(util.BaseTest)

Aggregations

SerialStruct (javax.sql.rowset.serial.SerialStruct)11 Test (org.testng.annotations.Test)10 BaseTest (util.BaseTest)10 Struct (java.sql.Struct)1 SQLInputImpl (javax.sql.rowset.serial.SQLInputImpl)1 SerialArray (javax.sql.rowset.serial.SerialArray)1 SerialBlob (javax.sql.rowset.serial.SerialBlob)1 SerialClob (javax.sql.rowset.serial.SerialClob)1 StubStruct (util.StubStruct)1