Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/TestEnvironment.java21
1 files changed, 18 insertions, 3 deletions
diff --git a/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/TestEnvironment.java b/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/TestEnvironment.java
index e142e0492ca..265a7fac069 100644
--- a/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/TestEnvironment.java
+++ b/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/TestEnvironment.java
@@ -16,6 +16,8 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;
import java.net.InetAddress;
+import java.net.URI;
+import java.net.URISyntaxException;
import java.net.URL;
import java.net.UnknownHostException;
import java.rmi.Remote;
@@ -35,7 +37,6 @@ import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.logging.Level;
-
import org.eclipse.core.runtime.Platform;
import org.eclipse.osee.connection.service.IServiceConnector;
import org.eclipse.osee.connection.service.LocalConnector;
@@ -46,6 +47,7 @@ import org.eclipse.osee.framework.jdk.core.util.Strings;
import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.messaging.Message;
import org.eclipse.osee.framework.messaging.MessagingGateway;
+import org.eclipse.osee.framework.messaging.NodeInfo;
import org.eclipse.osee.ote.core.GCHelper;
import org.eclipse.osee.ote.core.IUserSession;
import org.eclipse.osee.ote.core.OSEEPerson1_4;
@@ -112,9 +114,15 @@ public abstract class TestEnvironment implements TestEnvironmentInterface, ITest
private final LinkedBlockingQueue<Future> listOfThreadsToWaitOnInInit = new LinkedBlockingQueue<Future>();
private volatile boolean isShutdown = false;
+ private NodeInfo oteNodeInfo;
protected TestEnvironment(IEnvironmentFactory factory) {
GCHelper.getGCHelper().addRefWatch(this);
+ try {
+ oteNodeInfo = new NodeInfo("OTEEmbeddedBroker",new URI("vm://localhost?broker.persistent=false"));
+ } catch (URISyntaxException ex) {
+ OseeLog.log(TestEnvironment.class, Level.SEVERE, ex);
+ }
execInitializationTasks = Executors.newCachedThreadPool();
this.factory = factory;
this.testStation = factory.getTestStation();
@@ -501,7 +509,6 @@ public abstract class TestEnvironment implements TestEnvironmentInterface, ITest
if (associatedObjectListeners != null) {
associatedObjectListeners.clear();
}
- GCHelper.getGCHelper().printLiveReferences();
}
public void setExecutionUnitManagement(IExecutionUnitManagement executionUnitManagement) {
@@ -712,4 +719,12 @@ public abstract class TestEnvironment implements TestEnvironmentInterface, ITest
public void abortTestScript(Throwable t) {
getRunManager().abort(t, false);
}
-}
+
+ public void setOteNodeInfo(NodeInfo info){
+ oteNodeInfo = info;
+ }
+
+ public NodeInfo getOteNodeInfo(NodeInfo info){
+ return oteNodeInfo;
+ }
+} \ No newline at end of file

Back to the top