blob: b543c69c51d874152809be8e37369dcdf59fd13a (
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
28
29
30
31
|
package com.vaadin.tests.components.button;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
public class ButtonErrorMessage extends TestBase {
@Override
protected void setup() {
Button b = new Button("Click for error");
b.addListener(new ClickListener() {
public void buttonClick(ClickEvent 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;
}
}
|