Home | History | Annotate | Download | only in sql
      1 /*
      2  * Licensed to the Apache Software Foundation (ASF) under one or more
      3  * contributor license agreements.  See the NOTICE file distributed with
      4  * this work for additional information regarding copyright ownership.
      5  * The ASF licenses this file to You under the Apache License, Version 2.0
      6  * (the "License"); you may not use this file except in compliance with
      7  * the License.  You may obtain a copy of the License at
      8  *
      9  *     http://www.apache.org/licenses/LICENSE-2.0
     10  *
     11  * Unless required by applicable law or agreed to in writing, software
     12  * distributed under the License is distributed on an "AS IS" BASIS,
     13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  * See the License for the specific language governing permissions and
     15  * limitations under the License.
     16  */
     17 
     18 package org.apache.harmony.sql.tests.java.sql;
     19 
     20 import junit.framework.TestCase;
     21 import static java.sql.Types.*;
     22 
     23 public class TypesTest extends TestCase {
     24 
     25     /*
     26      * Public statics test
     27      */
     28     public void testPublicStatics() {
     29         assertEquals(ARRAY, 2003);
     30         assertEquals(BIGINT, -5);
     31         assertEquals(BINARY, -2);
     32         assertEquals(BIT, -7);
     33         assertEquals(BLOB, 2004);
     34         assertEquals(BOOLEAN, 16);
     35         assertEquals(CHAR, 1);
     36         assertEquals(CLOB, 2005);
     37         assertEquals(DATALINK, 70);
     38         assertEquals(DATE, 91);
     39         assertEquals(DECIMAL, 3);
     40         assertEquals(DISTINCT, 2001);
     41         assertEquals(DOUBLE, 8);
     42         assertEquals(FLOAT, 6);
     43         assertEquals(INTEGER, 4);
     44         assertEquals(JAVA_OBJECT, 2000);
     45         assertEquals(LONGNVARCHAR, -16);
     46         assertEquals(LONGVARBINARY, -4);
     47         assertEquals(LONGVARCHAR, -1);
     48         assertEquals(NCHAR, -15);
     49         assertEquals(NCLOB, 2011);
     50         assertEquals(NULL, 0);
     51         assertEquals(NUMERIC, 2);
     52         assertEquals(NVARCHAR, -9);
     53         assertEquals(OTHER, 1111);
     54         assertEquals(REAL, 7);
     55         assertEquals(REF, 2006);
     56         assertEquals(ROWID, -8);
     57         assertEquals(SMALLINT, 5);
     58         assertEquals(SQLXML, 2009);
     59         assertEquals(STRUCT, 2002);
     60         assertEquals(TIME, 92);
     61         assertEquals(TIMESTAMP, 93);
     62         assertEquals(TINYINT, -6);
     63         assertEquals(VARBINARY, -3);
     64         assertEquals(VARCHAR, 12);
     65     }
     66 
     67 }
     68