Index: trunk/test/unit/org/openstreetmap/josm/gui/dialogs/layer/LayerVisibilityActionTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/gui/dialogs/layer/LayerVisibilityActionTest.java	(revision 12368)
+++ trunk/test/unit/org/openstreetmap/josm/gui/dialogs/layer/LayerVisibilityActionTest.java	(revision 12394)
@@ -6,6 +6,8 @@
 import static org.junit.Assert.assertTrue;
 
+import org.junit.BeforeClass;
 import org.junit.Rule;
 import org.junit.Test;
+import org.openstreetmap.josm.JOSMFixture;
 import org.openstreetmap.josm.Main;
 import org.openstreetmap.josm.gui.dialogs.LayerListDialog;
@@ -27,4 +29,12 @@
     @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
     public JOSMTestRules test = new JOSMTestRules().preferences().projection().platform();
+
+    /**
+     * Somewhere deep down the dependencies we need shortcuts
+     */
+    @BeforeClass
+    public static void setUp() {
+        JOSMFixture.createUnitTestFixture().init(true);
+    }
 
     /**
@@ -70,5 +80,5 @@
 
         // layer stays visible during adjust
-        action.opacitySlider.setValueIsAdjusting(true);
+        action.opacitySlider.slider.setValueIsAdjusting(true);
         action.opacitySlider.setRealValue(0);
         assertEquals(0, layer.getOpacity(), 1e-15);
@@ -77,5 +87,5 @@
         layer.setOpacity(0);
 
-        action.opacitySlider.setValueIsAdjusting(false);
+        action.opacitySlider.slider.setValueIsAdjusting(false);
         action.opacitySlider.setRealValue(0);
         assertEquals(0, layer.getOpacity(), 1e-15);
