aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/main/java/com/vaadin/tests/dd/DDInterrupt.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/main/java/com/vaadin/tests/dd/DDInterrupt.java')
-rw-r--r--uitest/src/main/java/com/vaadin/tests/dd/DDInterrupt.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/dd/DDInterrupt.java b/uitest/src/main/java/com/vaadin/tests/dd/DDInterrupt.java
index a16a627763..22ac4172d0 100644
--- a/uitest/src/main/java/com/vaadin/tests/dd/DDInterrupt.java
+++ b/uitest/src/main/java/com/vaadin/tests/dd/DDInterrupt.java
@@ -9,8 +9,6 @@ import com.vaadin.event.dd.acceptcriteria.AcceptCriterion;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractReindeerTestUI;
import com.vaadin.tests.widgetset.TestingWidgetSet;
-import com.vaadin.ui.Button;
-import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.CssLayout;
import com.vaadin.ui.DragAndDropWrapper;
import com.vaadin.ui.DragAndDropWrapper.DragStartMode;
@@ -32,13 +30,7 @@ public class DDInterrupt extends AbstractReindeerTestUI {
layout.setWidth("500px");
layout.setHeight("500px");
- addButton("Click to interrupt next drag.", new Button.ClickListener() {
-
- @Override
- public void buttonClick(ClickEvent event) {
- sp.interruptNext();
- }
- });
+ addButton("Click to interrupt next drag.", event -> sp.interruptNext());
final Label draggableLabel = new Label("Drag me");
draggableLabel.setId("draggable");