aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test/java/com/vaadin/ui/LabelTest.java
blob: e98c4a0d7b4f4c338a45eba696f3ba17b643f34b (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
package com.vaadin.ui;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

public class LabelTest {

    @Test
    public void emptyLabelValue() {
        assertEquals("", new Label().getValue());
    }

    @Test
    public void labelInitialValue() {
        assertEquals("initial", new Label("initial").getValue());
    }

    @Test
    public void labelSetValue() {
        Label label = new Label();
        label.setValue("foo");
        assertEquals("foo", label.getValue());
    }

}