blob: 5bf082f65971506058dff8d90c7ff2b13f45f332 (
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
|
package com.vaadin.ui;
import org.junit.Assert;
import org.junit.Test;
public class LabelTest {
@Test
public void emptyLabelValue() {
Assert.assertEquals("", new Label().getValue());
}
@Test
public void labelInitialValue() {
Assert.assertEquals("initial", new Label("initial").getValue());
}
@Test
public void labelSetValue() {
Label label = new Label();
label.setValue("foo");
Assert.assertEquals("foo", label.getValue());
}
}
|