Search in sources :

Example 6 with StubBaseRowSet

use of util.StubBaseRowSet in project jdk8u_jdk by JetBrains.

the class BaseRowSetTests method baseRowSetTest0012.

/*
     * Validate setNull specifying the supported type values and that
     * typeName is set internally
     */
@Test(dataProvider = "jdbcTypes")
public void baseRowSetTest0012(Integer type) throws Exception {
    brs = new StubBaseRowSet();
    brs.setNull(1, type, "SUPERHERO");
    assertTrue(checkNullParam(1, type, "SUPERHERO"));
}
Also used : StubBaseRowSet(util.StubBaseRowSet) Test(org.testng.annotations.Test)

Example 7 with StubBaseRowSet

use of util.StubBaseRowSet in project jdk8u_jdk by JetBrains.

the class BaseRowSetTests method baseRowSetTest0014.

/*
     *  Validate that setTime sets the specified Calendar internally
     */
@Test()
public void baseRowSetTest0014() throws Exception {
    Calendar cal = Calendar.getInstance();
    brs = new StubBaseRowSet();
    brs.setTime(1, Time.valueOf(LocalTime.now()), cal);
    assertTrue(checkCalendarParam(1, cal));
}
Also used : Calendar(java.util.Calendar) StubBaseRowSet(util.StubBaseRowSet) Test(org.testng.annotations.Test)

Aggregations

StubBaseRowSet (util.StubBaseRowSet)7 Test (org.testng.annotations.Test)5 Calendar (java.util.Calendar)4 DataProvider (org.testng.annotations.DataProvider)2 InputStream (java.io.InputStream)1 Reader (java.io.Reader)1 StringBufferInputStream (java.io.StringBufferInputStream)1 StringReader (java.io.StringReader)1 BigDecimal (java.math.BigDecimal)1 Array (java.sql.Array)1 Blob (java.sql.Blob)1 Clob (java.sql.Clob)1 Date (java.sql.Date)1 Ref (java.sql.Ref)1 Time (java.sql.Time)1 Timestamp (java.sql.Timestamp)1 LocalDate (java.time.LocalDate)1 LocalDateTime (java.time.LocalDateTime)1 LocalTime (java.time.LocalTime)1 SerialArray (javax.sql.rowset.serial.SerialArray)1