您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CustomDateTimeFormatTest.java 522B

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 CustomDateTimeFormatTest 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 12.23.45", text);
  16. }
  17. }