Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2006-10-28 05:14:50 -0400
committerEike Stepper2006-10-28 05:14:50 -0400
commiteb098fcb074b0e34826d861db793df6b3cbe2d10 (patch)
treea0a6129f2b19560aca8e917dc868d2e25f6dcd2e /plugins/org.eclipse.emf.cdo.tests/src
parentd58e62c0c8163cc0f578afdb3554ec00899c2e82 (diff)
downloadcdo-eb098fcb074b0e34826d861db793df6b3cbe2d10.tar.gz
cdo-eb098fcb074b0e34826d861db793df6b3cbe2d10.tar.xz
cdo-eb098fcb074b0e34826d861db793df6b3cbe2d10.zip
Added instance tracer
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests/src')
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/topology/AbstractTopologyTest.java17
1 files changed, 12 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/topology/AbstractTopologyTest.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/topology/AbstractTopologyTest.java
index 7337c1d8ff..295c269122 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/topology/AbstractTopologyTest.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/topology/AbstractTopologyTest.java
@@ -21,8 +21,9 @@ import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
import org.eclipse.net4j.util.om.OMPlatform;
-import org.eclipse.net4j.util.om.PrintStreamLogHandler;
-import org.eclipse.net4j.util.om.PrintStreamTraceHandler;
+import org.eclipse.net4j.util.om.log.PrintLogHandler;
+import org.eclipse.net4j.util.om.trace.RemoteTraceHandler;
+import org.eclipse.net4j.util.om.trace.RemoteTraceServer;
import org.springframework.jdbc.core.JdbcTemplate;
@@ -33,6 +34,8 @@ import junit.framework.TestCase;
public abstract class AbstractTopologyTest extends TestCase implements ITopologyConstants
{
+ private static int run;
+
private String mode;
private ITopology topology;
@@ -41,7 +44,7 @@ public abstract class AbstractTopologyTest extends TestCase implements ITopology
private String label;
- private static int run;
+ private RemoteTraceServer remoteTraceServer;
public String getMode()
{
@@ -66,9 +69,13 @@ public abstract class AbstractTopologyTest extends TestCase implements ITopology
@Override
protected void setUp() throws Exception
{
- OMPlatform.INSTANCE.addLogHandler(PrintStreamLogHandler.CONSOLE);
- OMPlatform.INSTANCE.addTraceHandler(PrintStreamTraceHandler.CONSOLE);
+ // remoteTraceServer = new RemoteTraceServer();
+ // remoteTraceServer.addListener(RemoteTraceServer.PrintListener.CONSOLE);
+
OMPlatform.INSTANCE.setDebugging(true);
+ OMPlatform.INSTANCE.addLogHandler(PrintLogHandler.CONSOLE);
+ OMPlatform.INSTANCE.addTraceHandler(new RemoteTraceHandler());
+ // OMPlatform.INSTANCE.addTraceHandler(PrintTraceHandler.CONSOLE);
System.gc();
startMemory = getUsedMemory();

Back to the top