You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CustomDateFormatTest.java 509B

123456789101112131415161718192021222324
  1. package com.vaadin.tests.components.datefield;
  2. import static org.junit.Assert.assertEquals;
  3. import org.junit.Test;
  4. import com.vaadin.testbench.By;
  5. import com.vaadin.tests.tb3.MultiBrowserTest;
  6. /**
  7. * @author Vaadin Ltd
  8. *
  9. */
  10. public class CustomDateFormatTest extends MultiBrowserTest {
  11. @Test
  12. public void checkCustomDateFormat() {
  13. openTestURL();
  14. String text = findElement(By.tagName("input")).getAttribute("value");
  15. assertEquals("1. tammikuuta 2010 klo", text);
  16. }
  17. }