aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2013-06-11 18:23:20 +0300
committerDamian Minkov <damencho@jitsi.org>2013-06-11 18:23:20 +0300
commit662a236b8b76b2eab8810b23b2f80bcf9e08856e (patch)
tree25fc48154b65e51d1170502ca0a4a1f025ee506b /test
parentee931ddaa0dcf3b4297c55084df9a00bbef19ea2 (diff)
downloadjitsi-662a236b8b76b2eab8810b23b2f80bcf9e08856e.zip
jitsi-662a236b8b76b2eab8810b23b2f80bcf9e08856e.tar.gz
jitsi-662a236b8b76b2eab8810b23b2f80bcf9e08856e.tar.bz2
Trying to fix build.
Diffstat (limited to 'test')
-rw-r--r--test/net/java/sip/communicator/slick/popupmessagehandler/PopupMessageHandlerSLick.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/net/java/sip/communicator/slick/popupmessagehandler/PopupMessageHandlerSLick.java b/test/net/java/sip/communicator/slick/popupmessagehandler/PopupMessageHandlerSLick.java
index 8d8336d..dc0c06f 100644
--- a/test/net/java/sip/communicator/slick/popupmessagehandler/PopupMessageHandlerSLick.java
+++ b/test/net/java/sip/communicator/slick/popupmessagehandler/PopupMessageHandlerSLick.java
@@ -6,10 +6,10 @@
*/
package net.java.sip.communicator.slick.popupmessagehandler;
-import java.awt.*;
import java.util.*;
import junit.framework.*;
+import net.java.sip.communicator.service.systray.*;
import net.java.sip.communicator.util.*;
import org.osgi.framework.*;
@@ -30,11 +30,6 @@ public class PopupMessageHandlerSLick extends TestSuite implements BundleActivat
/** implements BundleActivator.start() */
public void start(BundleContext bc) throws Exception
{
- // if we are running in headless mode we will miss the systray service
- // as the corresponding classes are not available, skip it
- if(GraphicsEnvironment.isHeadless())
- return;
-
logger.info("starting popup message test ");
bundleContext = bc;
@@ -45,7 +40,12 @@ public class PopupMessageHandlerSLick extends TestSuite implements BundleActivat
properties.put("service.pid", getName());
- addTest(TestPopupMessageHandler.suite());
+ // we maybe are running on machine without WM and systray
+ // (test server machine), skip tests
+ if(ServiceUtils.getService(bc, SystrayService.class) != null)
+ {
+ addTest(TestPopupMessageHandler.suite());
+ }
bundleContext.registerService(getClass().getName(), this, properties);
}