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));
}
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);
}
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)));
}
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)));
}
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);
}
Aggregations