summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-02-02 12:25:45 (EST)
committerEike Stepper2008-02-02 12:25:45 (EST)
commit227de499575c11dc2ed4e422718babb035dc3f5e (patch)
treeae100b449e09815d7ed658344b768e734a78b729
parent4475d11cb9c1ff8079e14d6a52e411bcb41017e3 (diff)
downloadcdo-227de499575c11dc2ed4e422718babb035dc3f5e.zip
cdo-227de499575c11dc2ed4e422718babb035dc3f5e.tar.gz
cdo-227de499575c11dc2ed4e422718babb035dc3f5e.tar.bz2
[217117] Develop a HibernateStore
https://bugs.eclipse.org/bugs/show_bug.cgi?id=217117
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/HibernateTest.java28
1 files changed, 17 insertions, 11 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/HibernateTest.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/HibernateTest.java
index b23428d..e0531b1 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/HibernateTest.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/HibernateTest.java
@@ -54,17 +54,7 @@ public class HibernateTest
public static void main(String[] args) throws Exception
{
- // Turn on tracing
- OMPlatform.INSTANCE.setDebugging(true);
- OMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOLE);
- OMPlatform.INSTANCE.addLogHandler(PrintLogHandler.CONSOLE);
-
- // Prepare the standalone infra structure (not needed when running inside Eclipse)
- IManagedContainer container = ContainerUtil.createContainer(); // Create a wiring container
- Net4jUtil.prepareContainer(container); // Prepare the Net4j kernel
- JVMUtil.prepareContainer(container); // Prepare the JVM transport
- CDOServerUtil.prepareContainer(container); // Prepare the CDO server
- CDOUtil.prepareContainer(container, false); // Prepare the CDO client
+ IManagedContainer container = initContainer();
// Start the transport and create a repository
JVMUtil.getAcceptor(container, "default"); // Start the JVM transport
@@ -86,6 +76,22 @@ public class HibernateTest
connector.disconnect();
}
+ private static IManagedContainer initContainer()
+ {
+ // Turn on tracing
+ OMPlatform.INSTANCE.setDebugging(true);
+ OMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOLE);
+ OMPlatform.INSTANCE.addLogHandler(PrintLogHandler.CONSOLE);
+
+ // Prepare the standalone infra structure (not needed when running inside Eclipse)
+ IManagedContainer container = ContainerUtil.createContainer(); // Create a wiring container
+ Net4jUtil.prepareContainer(container); // Prepare the Net4j kernel
+ JVMUtil.prepareContainer(container); // Prepare the JVM transport
+ CDOServerUtil.prepareContainer(container); // Prepare the CDO server
+ CDOUtil.prepareContainer(container, false); // Prepare the CDO client
+ return container;
+ }
+
private static IRepository createRepository() throws Exception
{
Map<String, String> props = new HashMap<String, String>();