diff options
-rw-r--r-- | plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/TestEnvironment.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/TestEnvironment.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/TestEnvironment.java index a128fb0e09e..99d610c16eb 100644 --- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/TestEnvironment.java +++ b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/TestEnvironment.java @@ -145,8 +145,8 @@ public abstract class TestEnvironment implements TestEnvironmentInterface, ITest oteServerSideEndpointSender = new OteServerSideEndpointSender(this); BundleContext context = Platform.getBundle("org.eclipse.osee.ote.core").getBundleContext(); return getServiceTracker(MessagingGateway.class.getName(), new OteEnvironmentTrackerCustomizer(context, - oteServerSideEndpointRecieve, oteServerSideEndpointSender, - OteServerSideEndpointSender.OTE_SERVER_SIDE_SEND_PROTOCOL)); + oteServerSideEndpointRecieve, oteServerSideEndpointSender, + OteServerSideEndpointSender.OTE_SERVER_SIDE_SEND_PROTOCOL)); } public void sendCommand(Command command) { @@ -313,10 +313,10 @@ public abstract class TestEnvironment implements TestEnvironmentInterface, ITest throw new IOException("Failed to create the output directory"); } OseeLog.logf(TestEnvironment.class, Level.INFO, - "Outfile Dir [%s] created.", outDir.getAbsolutePath()); + "Outfile Dir [%s] created.", outDir.getAbsolutePath()); } else { OseeLog.logf(TestEnvironment.class, Level.FINE, - "Outfile Dir [%s] exists.", outDir.getAbsolutePath()); + "Outfile Dir [%s] exists.", outDir.getAbsolutePath()); } } else { throw new IOException("A valid outfile directory must be specified."); @@ -372,7 +372,11 @@ public abstract class TestEnvironment implements TestEnvironmentInterface, ITest } protected void stop() { - myRegistration.unregister(); + try { + myRegistration.unregister(); + } catch (IllegalStateException ex) { + // Service may have already been unregistered, but we don't care + } } protected void cleanupClassReferences() { |