@@ -0,0 +1,1275 @@
+package com.vaadin.ui;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.util.Date;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.core.IsNull.nullValue;%0A%0Apublic class DateFieldTests %7B%0A%0A    private DateField dateField;%0A    private Date date;%0A%0A    @Before%0A    public void setup() %7B%0A        dateField = new DateField();%0A        date = new Date();%0A    %7D%0A%0A    @Test%0A    public void rangeStartIsSetToNull() %7B%0A        dateField.setRangeStart(null);%0A%0A        assertThat(dateField.getRangeStart(), is(nullValue()));%0A    %7D%0A%0A    @Test%0A    public void rangeStartIsImmutable() %7B%0A        long expectedTime = date.getTime();%0A%0A        dateField.setRangeStart(date);%0A        date.setTime(expectedTime + 1);%0A%0A        assertThat(dateField.getRangeStart().getTime(), is(expectedTime));%0A    %7D%0A%0A    @Test%0A    public void rangeEndIsSetToNull() %7B%0A        dateField.setRangeEnd(null);%0A%0A        assertThat(dateField.getRangeEnd(), is(nullValue()));%0A    %7D%0A%0A    @Test%0A    public void rangeEndIsImmutable() %7B%0A        long expectedTime = date.getTime();%0A%0A        dateField.setRangeEnd(date);%0A        date.setTime(expectedTime + 1);%0A%0A        assertThat(dateField.getRangeEnd().getTime(), is(expectedTime));%0A    %7D%0A%7D%0A

Add DateFieldTest. (#15342)