< prev index next >

test/javax/sql/testng/test/rowset/serial/SerialJavaObjectTests.java

Print this page




   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */








  23 package test.rowset.serial;
  24 
  25 import java.lang.reflect.Field;
  26 import java.util.Arrays;
  27 import javax.sql.rowset.RowSetMetaDataImpl;
  28 import javax.sql.rowset.serial.SerialException;
  29 import javax.sql.rowset.serial.SerialJavaObject;
  30 import static org.testng.Assert.*;
  31 import org.testng.annotations.Test;
  32 import util.BaseTest;
  33 
  34 public class SerialJavaObjectTests extends BaseTest {
  35 
  36     /*
  37      * Validate that an NPE is thrown when null is specified to create
  38      * the SerialJavaObject
  39      */
  40     @Test(expectedExceptions = NullPointerException.class)
  41     public void test() throws Exception {
  42         SerialJavaObject sjo = new SerialJavaObject(null);




   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /**
  25  * @test
  26  * @modules java.sql.rowset/com.sun.rowset
  27  *          java.sql.rowset/com.sun.rowset.internal
  28  *          java.sql.rowset/com.sun.rowset.providers
  29  */
  30 
  31 package test.rowset.serial;
  32 
  33 import java.lang.reflect.Field;
  34 import java.util.Arrays;
  35 import javax.sql.rowset.RowSetMetaDataImpl;
  36 import javax.sql.rowset.serial.SerialException;
  37 import javax.sql.rowset.serial.SerialJavaObject;
  38 import static org.testng.Assert.*;
  39 import org.testng.annotations.Test;
  40 import util.BaseTest;
  41 
  42 public class SerialJavaObjectTests extends BaseTest {
  43 
  44     /*
  45      * Validate that an NPE is thrown when null is specified to create
  46      * the SerialJavaObject
  47      */
  48     @Test(expectedExceptions = NullPointerException.class)
  49     public void test() throws Exception {
  50         SerialJavaObject sjo = new SerialJavaObject(null);


< prev index next >