Revision: 6302
http://squirrel-sql.svn.sourceforge.net/squirrel-sql/?rev=6302&view=rev
Author: manningr
Date: 2011-06-10 03:17:47 +0000 (Fri, 10 Jun 2011)
Log Message:
-----------
More tests for proper identification of Dialects. Still not done.
Modified Paths:
--------------
trunk/sql12/fw/src/test/java/net/sourceforge/squirrel_sql/fw/dialects/DialectFactoryTest.java
Modified: trunk/sql12/fw/src/test/java/net/sourceforge/squirrel_sql/fw/dialects/DialectFactoryTest.java
===================================================================
--- trunk/sql12/fw/src/test/java/net/sourceforge/squirrel_sql/fw/dialects/DialectFactoryTest.java 2011-06-08 11:18:35 UTC (rev 6301)
+++ trunk/sql12/fw/src/test/java/net/sourceforge/squirrel_sql/fw/dialects/DialectFactoryTest.java 2011-06-10 03:17:47 UTC (rev 6302)
@@ -65,6 +65,10 @@
private static final String DERBY_PRODUCT_VERSION = "10.6.2.1 - (999685)";
+ private static final String INFORMIX_PRODUCT_NAME = "Informix Dynamic Server";
+
+ private static final String INFORMIX_PRODUCT_VERSION = "10.00.UC6E";
+
private static final String INGRES_PRODUCT_NAME = "INGRES";
private static final String INGRES_PRODUCT_VERSION = "II 9.1.1 (int.rpl/103)";
@@ -80,6 +84,10 @@
private static final String MYSQL5_PRODUCT_NAME = "MySQL";
private static final String MYSQL5_PRODUCT_VERSION = "5.1.41-3ubuntu12.10";
+
+ private static final String POINTBASE_PRODUCT_NAME = "PointBase";
+
+ private static final String POINTBASE_PRODUCT_VERSION = "5.1 ECF build 300";
private static final String POSTGRESQL_PRODUCT_NAME = "PostgreSQL";
@@ -373,6 +381,15 @@
}
@Test
+ public void testGetDialectForInformix() throws SQLException
+ {
+ final String productName = INFORMIX_PRODUCT_NAME;
+ final String productVersion = INFORMIX_PRODUCT_VERSION;
+ final String expectedDialectClassname = InformixDialectExt.class.getName();
+ testGetDialectForDatabase(productName, productVersion, expectedDialectClassname);
+ }
+
+ @Test
public void testGetDialectForMssql() throws SQLException
{
final String productName = MSSQL_PRODUCT_NAME;
@@ -408,7 +425,15 @@
testGetDialectForDatabase(productName, productVersion, expectedDialectClassname);
}
-
+ @Test
+ public void testGetDialectForPointbase() throws SQLException
+ {
+ final String productName = POINTBASE_PRODUCT_NAME;
+ final String productVersion = POINTBASE_PRODUCT_VERSION;
+ final String expectedDialectClassname = PointbaseDialectExt.class.getName();
+ testGetDialectForDatabase(productName, productVersion, expectedDialectClassname);
+ }
+
@Test(expected = UserCancelledOperationException.class)
public void testGetDialect_ShowDialog_UserCancelled() throws UserCancelledOperationException
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|