package org.synyx.urlaubsverwaltung.web.account; import org.joda.time.DateMidnight; import org.junit.Assert; import org.junit.Test; /** * @author Aljona Murygina - murygina@synyx.de */ public class AccountFormTest { @Test public void ensureHasDefaultValuesForHolidaysAccountPeriod() { AccountForm accountForm = new AccountForm(2014); Assert.assertNotNull("Valid from date for holidays account must not be null", accountForm.getHolidaysAccountValidFrom()); Assert.assertNotNull("Valid to date for holidays account must not be null", accountForm.getHolidaysAccountValidTo()); Assert.assertEquals("Wrong valid from date for holidays account", new DateMidnight(2014, 1, 1), accountForm.getHolidaysAccountValidFrom()); Assert.assertEquals("Wrong valid to date for holidays account", new DateMidnight(2014, 12, 31), accountForm.getHolidaysAccountValidTo()); } }