Author: bdaw
Date: 2009-05-07 15:45:12 -0400 (Thu, 07 May 2009)
New Revision: 479
Modified:
idm/trunk/idm/src/test/java/org/jboss/identity/idm/impl/store/hibernate/HibernateIdentityStoreTestCase.java
idm/trunk/idm/src/test/resources/datasources/datasources.xml
idm/trunk/idm/src/test/resources/datasources/hibernates.xml
Log:
switch to jtds driver for sybase
Modified:
idm/trunk/idm/src/test/java/org/jboss/identity/idm/impl/store/hibernate/HibernateIdentityStoreTestCase.java
===================================================================
---
idm/trunk/idm/src/test/java/org/jboss/identity/idm/impl/store/hibernate/HibernateIdentityStoreTestCase.java 2009-05-05
15:58:02 UTC (rev 478)
+++
idm/trunk/idm/src/test/java/org/jboss/identity/idm/impl/store/hibernate/HibernateIdentityStoreTestCase.java 2009-05-07
19:45:12 UTC (rev 479)
@@ -290,9 +290,13 @@
}
@Test
- public void testCredentials() throws Exception
+ public void testPasswordCredentials() throws Exception
{
commonTest.testPasswordCredential();
+ }
+
+ public void testBinaryCredentials() throws Exception
+ {
commonTest.testBinaryCredential();
}
Modified: idm/trunk/idm/src/test/resources/datasources/datasources.xml
===================================================================
--- idm/trunk/idm/src/test/resources/datasources/datasources.xml 2009-05-05 15:58:02 UTC
(rev 478)
+++ idm/trunk/idm/src/test/resources/datasources/datasources.xml 2009-05-07 19:45:12 UTC
(rev 479)
@@ -23,10 +23,17 @@
<datasources>
+ <!--<datasource>-->
+ <!--<datasource-name>sybase152</datasource-name>-->
+
<!--<connection-url>jdbc:sybase:Tds:dev77.qa.atl2.redhat.com:4100/jbidentity</connection-url>-->
+
<!--<driver-class>com.sybase.jdbc3.jdbc.SybDriver</driver-class>-->
+ <!--<user-name>jbidentity</user-name>-->
+ <!--<password>jbidentity</password>-->
+ <!--</datasource>-->
<datasource>
<datasource-name>sybase152</datasource-name>
-
<connection-url>jdbc:sybase:Tds:dev77.qa.atl2.redhat.com:4100/jbidentity</connection-url>
- <driver-class>com.sybase.jdbc3.jdbc.SybDriver</driver-class>
+
<connection-url>jdbc:jtds:sybase://dev77.qa.atl2.redhat.com:4100/jbidentity</connection-url>
+ <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>
<user-name>jbidentity</user-name>
<password>jbidentity</password>
</datasource>
Modified: idm/trunk/idm/src/test/resources/datasources/hibernates.xml
===================================================================
--- idm/trunk/idm/src/test/resources/datasources/hibernates.xml 2009-05-05 15:58:02 UTC
(rev 478)
+++ idm/trunk/idm/src/test/resources/datasources/hibernates.xml 2009-05-07 19:45:12 UTC
(rev 479)
@@ -4,6 +4,10 @@
<configuration-name>default</configuration-name>
<properties>
<property>
+ <name>hibernate.hbm2ddl.auto</name>
+ <value>create-drop</value>
+ </property>
+ <property>
<name>hibernate.show_sql</name>
<value>true</value>
</property>