use of javax.sql.rowset.serial.SerialArray in project jdk8u_jdk by JetBrains.
the class SerialArrayTests method test06.
/*
* Validate a SerialException is thrown when getResultSet() is called
*/
@Test(expectedExceptions = SerialException.class)
public void test06() throws Exception {
SerialArray sa = new SerialArray(a);
sa.getResultSet(1, 1, null);
}
use of javax.sql.rowset.serial.SerialArray in project jdk8u_jdk by JetBrains.
the class SerialArrayTests method test10.
/*
* Validate a SerialException is thrown when getArray() is invoked after
* free() is called
*/
@Test(expectedExceptions = SerialException.class)
public void test10() throws Exception {
SerialArray sa = new SerialArray(a);
sa.free();
sa.getArray(1, 1);
}
use of javax.sql.rowset.serial.SerialArray in project jdk8u_jdk by JetBrains.
the class SerialArrayTests method test15.
/*
* Validate getArray() returns the same Object[] used to create the
* SerialArray
*/
@Test
public void test15() throws Exception {
SerialArray sa = new SerialArray(a);
Object[] o = (Object[]) sa.getArray(1, 2);
assertTrue(Arrays.equals(o, Arrays.copyOfRange(coffees, 1, 3)));
}
use of javax.sql.rowset.serial.SerialArray in project jdk8u_jdk by JetBrains.
the class SerialArrayTests method test09.
/*
* Validate a SerialException is thrown when getArray() is invoked after
* free() is called
*/
@Test(expectedExceptions = SerialException.class)
public void test09() throws Exception {
SerialArray sa = new SerialArray(a);
sa.free();
sa.getArray(1, 1, map);
}
use of javax.sql.rowset.serial.SerialArray in project jdk8u_jdk by JetBrains.
the class SerialArrayTests method test07.
/*
* Validate a SerialException is thrown when getArray() is invoked after
* free() is called
*/
@Test(expectedExceptions = SerialException.class)
public void test07() throws Exception {
SerialArray sa = new SerialArray(a);
sa.free();
sa.getArray();
}
Aggregations