aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/components/datefield/CustomDateFormatTest.java
blob: 6ccd62c1c1ee0ae99a48cfcefe88bda6b257c87f (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
package com.vaadin.tests.components.datefield;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import com.vaadin.testbench.By;
import com.vaadin.tests.tb3.MultiBrowserTest;

/**
 * @author Vaadin Ltd
 *
 */
public class CustomDateFormatTest extends MultiBrowserTest {

    @Test
    public void checkCustomDateFormat() {
        openTestURL();

        String text = findElement(By.tagName("input")).getAttribute("value");
        assertEquals("1. tammikuuta 2010 klo", text);
    }

}