summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaspar De Groot2010-09-01 23:36:02 (EDT)
committerCaspar De Groot2010-09-01 23:36:02 (EDT)
commit79d8e5d6678d1bb7bcb21b1bb86ed108d05665f1 (patch)
tree9ca73e2765d67ad86d1e70a6eb687cad965a2cf0
parent36bb58823c26f2e666d80a6459dd12776f2cab3c (diff)
downloadcdo-79d8e5d6678d1bb7bcb21b1bb86ed108d05665f1.zip
cdo-79d8e5d6678d1bb7bcb21b1bb86ed108d05665f1.tar.gz
cdo-79d8e5d6678d1bb7bcb21b1bb86ed108d05665f1.tar.bz2
[322969] [DB] Various test suites broken due to mismatched audit support
https://bugs.eclipse.org/bugs/show_bug.cgi?id=322969
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/AllTestsDBHsqldb.java9
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/AllTestsDBMysql.java9
2 files changed, 18 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/AllTestsDBHsqldb.java b/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/AllTestsDBHsqldb.java
index 270dae4..0bfaa98 100644
--- a/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/AllTestsDBHsqldb.java
+++ b/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/AllTestsDBHsqldb.java
@@ -11,6 +11,7 @@
package org.eclipse.emf.cdo.tests.db;
import org.eclipse.emf.cdo.server.IRepository;
+import org.eclipse.emf.cdo.server.IRepository.Props;
import org.eclipse.emf.cdo.server.db.CDODBUtil;
import org.eclipse.emf.cdo.server.db.mapping.IMappingStrategy;
import org.eclipse.emf.cdo.tests.bugzilla.Bugzilla_266982_Test;
@@ -31,6 +32,7 @@ import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
+import java.util.Map;
import junit.framework.Test;
import junit.framework.TestSuite;
@@ -176,5 +178,12 @@ public class AllTestsDBHsqldb extends DBConfigs
dataSources.clear();
}
+
+ @Override
+ protected void initRepositoryProperties(Map<String, String> props)
+ {
+ super.initRepositoryProperties(props);
+ props.put(Props.SUPPORTING_AUDITS, "true");
+ }
}
}
diff --git a/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/AllTestsDBMysql.java b/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/AllTestsDBMysql.java
index 3f18333..56a75c1 100644
--- a/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/AllTestsDBMysql.java
+++ b/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/AllTestsDBMysql.java
@@ -11,6 +11,7 @@
*/
package org.eclipse.emf.cdo.tests.db;
+import org.eclipse.emf.cdo.server.IRepository.Props;
import org.eclipse.emf.cdo.server.db.CDODBUtil;
import org.eclipse.emf.cdo.server.db.mapping.IMappingStrategy;
@@ -26,6 +27,7 @@ import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
+import java.util.Map;
import junit.framework.Test;
import junit.framework.TestSuite;
@@ -164,5 +166,12 @@ public class AllTestsDBMysql extends DBConfigs
return setupDataSource;
}
+
+ @Override
+ protected void initRepositoryProperties(Map<String, String> props)
+ {
+ super.initRepositoryProperties(props);
+ props.put(Props.SUPPORTING_AUDITS, "true");
+ }
}
}