use of javax.sql.rowset.serial.SerialRef in project jdk8u_jdk by JetBrains.
the class SerialRefTests method test09.
/*
* clone() a SerialRef and check that it is equal to the
* object it was cloned from
*/
@Test
public void test09() throws Exception {
SerialRef sr = new SerialRef(ref);
SerialRef sr1 = (SerialRef) sr.clone();
assertTrue(sr.equals(sr1));
}
use of javax.sql.rowset.serial.SerialRef in project jdk8u_jdk by JetBrains.
the class SerialRefTests method test10.
/**
* Validate that a SerialRef that is serialized & deserialized is equal to
* itself for the Object & baseTypeName
*/
@Test
public void test10() throws Exception {
SerialRef sr = new SerialRef(ref);
SerialRef sr1 = serializeDeserializeObject(sr);
assertTrue(sr1.getObject().equals(sr.getObject()) && sr1.getBaseTypeName().equals(sr.getBaseTypeName()));
}
use of javax.sql.rowset.serial.SerialRef in project jdk8u_jdk by JetBrains.
the class SerialRefTests method test03.
/*
* Validate that getBaseTypeName() returns the same SQLType specified
* to create the Ref
*/
@Test
public void test03() throws Exception {
SerialRef sr = new SerialRef(ref);
assertEquals(sr.getBaseTypeName(), sqlType);
}
use of javax.sql.rowset.serial.SerialRef in project jdk8u_jdk by JetBrains.
the class SerialRefTests method test05.
/*
* Validate that getObject() returns the same object used to create the Ref
*/
@Test(enabled = false)
public void test05() throws Exception {
SerialRef sr = new SerialRef(ref);
assertTrue(hero.equals(sr.getObject(map)));
}
Aggregations