blob: 3497dc4653a9bf916dfa3b7c97a778fe78452a11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package com.vaadin.tests.components.button;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button;
public class ButtonErrorMessage extends TestBase {
@Override
protected void setup() {
Button b = new Button("Click for error");
b.addClickListener(event -> {
throw new NullPointerException();
});
addComponent(b);
}
@Override
protected String getDescription() {
return "Click the button for an exception. The exception should not contain any extra ',' characters";
}
@Override
protected Integer getTicketNumber() {
return 3303;
}
}
|