@Test public void testBit() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.BIT); assertEquals( "BIT did not map to BOOLEAN", SqlTypeName.BOOLEAN, tn); }
@Test public void testSmallint() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.SMALLINT); assertEquals( "SMALLINT did not map to SMALLINT", SqlTypeName.SMALLINT, tn); }
@Test public void testDecimal() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.DECIMAL); assertEquals( "DECIMAL did not map to DECIMAL", SqlTypeName.DECIMAL, tn); }
@Test public void testVarchar() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.VARCHAR); assertEquals( "VARCHAR did not map to VARCHAR", SqlTypeName.VARCHAR, tn); }
@Test public void testLongvarchar() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.LONGVARCHAR); assertEquals( "LONGVARCHAR did not map to null", null, tn); }
@Test public void testTimestamp() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.TIMESTAMP); assertEquals( "TIMESTAMP did not map to TIMESTAMP", SqlTypeName.TIMESTAMP, tn); }
@Test public void testLongnvarchar() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(ExtraSqlTypes.LONGNVARCHAR); // LONGNVARCHAR not supported yet assertEquals( "LONGNVARCHAR maps to non-null type", null, tn); }
@Test public void testSqlxml() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(ExtraSqlTypes.SQLXML); // SQLXML not supported yet assertEquals( "SQLXML maps to non-null type", null, tn); } }
@Test public void testLongvarchar() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.LONGVARCHAR); assertEquals( "LONGVARCHAR did not map to null", null, tn); }
@Test public void testTime() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.TIME); assertEquals( "TIME did not map to TIME", SqlTypeName.TIME, tn); }
@Test public void testOther() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.OTHER); assertEquals( "OTHER did not map to null", null, tn); }
@Test public void testDistinct() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.DISTINCT); assertEquals( "DISTINCT did not map to DISTINCT", SqlTypeName.DISTINCT, tn); }
@Test public void testArray() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.ARRAY); assertEquals( "ARRAY did not map to null", null, tn); }
@Test public void testRef() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.REF); assertEquals( "REF did not map to null", null, tn); }
@Test public void testBoolean() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.BOOLEAN); assertEquals( "BOOLEAN did not map to BOOLEAN", SqlTypeName.BOOLEAN, tn); }
@Test public void testTinyint() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.TINYINT); assertEquals( "TINYINT did not map to TINYINT", SqlTypeName.TINYINT, tn); }
@Test public void testLongvarbinary() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.LONGVARBINARY); assertEquals( "LONGVARBINARY did not map to null", null, tn); }
@Test public void testJavaobject() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.JAVA_OBJECT); assertEquals( "JAVA_OBJECT did not map to null", null, tn); }
@Test public void testBoolean() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(Types.BOOLEAN); assertEquals( "BOOLEAN did not map to BOOLEAN", SqlTypeName.BOOLEAN, tn); }
@Test public void testNchar() { SqlTypeName tn = SqlTypeName.getNameForJdbcType(ExtraSqlTypes.NCHAR); // NCHAR not supported yet, currently maps to CHAR assertEquals( "NCHAR did not map to CHAR", SqlTypeName.CHAR, tn); }