don't show dialog for unit tests
authordadubrow
Wed, 03 Feb 2010 08:04:45 -0600
changeset 886 8747d97a4fec
parent 884 f7f8b9aa74fa
child 893 de3efc6897e8
don't show dialog for unit tests
connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/RemoteConnectionsActivator.java
--- a/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/RemoteConnectionsActivator.java	Tue Feb 02 18:50:55 2010 -0600
+++ b/connectivity/com.nokia.carbide.remoteConnections/src/com/nokia/carbide/remoteconnections/RemoteConnectionsActivator.java	Wed Feb 03 08:04:45 2010 -0600
@@ -89,6 +89,9 @@
 	}
 
 	private void checkPrerequisites() {
+		if (WorkbenchUtils.isJUnitRunning())
+			return;
+		
 		final Map<IDeviceDiscoveryAgent, IPrerequisiteStatus> agentToStatusMap = 
 			new HashMap<IDeviceDiscoveryAgent, IPrerequisiteStatus>();