blob: 4633b4f1cd324538a1564fbffcb51805d58132db (
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
32
33
34
35
|
package com.vaadin.tests.components;
import com.vaadin.ui.Button;
import com.vaadin.ui.TextField;
public class MultipleDebugIds extends TestBase {
@Override
protected String getDescription() {
return "An exception should be thrown if the same debugId is assigned to several components";
}
@Override
protected Integer getTicketNumber() {
return 2796;
}
@Override
protected void setup() {
TextField textField = new TextField();
TextField textField2 = new TextField();
Button button = new Button();
Button button2 = new Button();
textField.setId("textfield");
button.setId("button");
textField2.setId("textfield2");
button2.setId("textfield");
addComponent(textField);
addComponent(textField2);
addComponent(button);
addComponent(button2);
}
}
|