[exo-jcr-commits] exo-jcr SVN: r1596 - jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/storage/value/cas.
do-not-reply at jboss.org
do-not-reply at jboss.org
Wed Jan 27 11:54:37 EST 2010
Author: pnedonosko
Date: 2010-01-27 11:54:37 -0500 (Wed, 27 Jan 2010)
New Revision: 1596
Modified:
jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/storage/value/cas/TestJDBCValueContentAddressStorageImpl.java
Log:
EXOJCR-310 fix of dialect usage in JDBC VCAS test
Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/storage/value/cas/TestJDBCValueContentAddressStorageImpl.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/storage/value/cas/TestJDBCValueContentAddressStorageImpl.java 2010-01-27 16:38:01 UTC (rev 1595)
+++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/storage/value/cas/TestJDBCValueContentAddressStorageImpl.java 2010-01-27 16:54:37 UTC (rev 1596)
@@ -55,15 +55,20 @@
if (wse.getName().equals(session.getWorkspace().getName()))
{
jdbcSourceName = wse.getContainer().getParameterValue(JDBCWorkspaceDataContainer.SOURCE_NAME);
- jdbcDialect = wse.getContainer().getParameterValue(JDBCWorkspaceDataContainer.DB_DIALECT);
+ jdbcDialect = wse.getContainer().getParameterValue(JDBCWorkspaceDataContainer.DB_DIALECT, null);
}
}
if (jdbcSourceName == null)
+ {
fail(JDBCWorkspaceDataContainer.SOURCE_NAME + " required in workspace container config");
+ }
props.put(JDBCValueContentAddressStorageImpl.JDBC_SOURCE_NAME_PARAM, jdbcSourceName);
- props.put(JDBCValueContentAddressStorageImpl.JDBC_DIALECT_PARAM, jdbcDialect);
+ if (jdbcDialect != null)
+ {
+ props.put(JDBCValueContentAddressStorageImpl.JDBC_DIALECT_PARAM, jdbcDialect);
+ }
props.put(JDBCValueContentAddressStorageImpl.TABLE_NAME_PARAM,
JDBCValueContentAddressStorageImpl.DEFAULT_TABLE_NAME + "_TEST");
More information about the exo-jcr-commits
mailing list