/**
* Test method for {@link de.fuhagen.sttp.gui.ZoomSlider#mouseDragged(java.awt.event.MouseEvent)}.
*/
@Test
public void testMouseDragged() {
ZoomSlider zs = new ZoomSlider(250, 70, true);
MouseEvent mouseStart = new MouseEvent(zs, 0, System
.currentTimeMillis(), 0, 50, 30, 1, false);
MouseEvent mouseDragRight = new MouseEvent(zs, 0, System
.currentTimeMillis(), 0, 100, 30, 1, false);
int value = zs.getValue();
zs.mousePressed(mouseStart);
zs.mouseDragged(mouseDragRight);
assertTrue("drag right reduce zoom " + value + " < " + zs.getValue(),
value < zs.getValue());
MouseEvent mouseDragLeft = new MouseEvent(zs, 0, System
.currentTimeMillis(), 0, 20, 30, 1, false);
value = zs.getValue();
zs.mousePressed(mouseStart);
zs.mouseDragged(mouseDragLeft);
assertTrue("drag left increase zoom " + value + " > " + zs.getValue(),
value > zs.getValue());
}