BAEL-2522 Kevin comments addressed

This commit is contained in:
Antonio Moreno 2019-03-18 20:19:37 +00:00
parent 227ad26d0b
commit 384dad60f1
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package com.baeldung.xmlgregoriancalendar;
import org.junit.Test;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeConstants;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.datatype.XMLGregorianCalendar;
import java.time.LocalDate;
@ -19,6 +20,7 @@ public class XmlGregorianCalendarConverterUnitTest {
assertThat(xmlGregorianCalendar.getYear()).isEqualTo(localDate.getYear());
assertThat(xmlGregorianCalendar.getMonth()).isEqualTo(localDate.getMonthValue());
assertThat(xmlGregorianCalendar.getDay()).isEqualTo(localDate.getDayOfMonth());
assertThat(xmlGregorianCalendar.getTimezone()).isEqualTo(DatatypeConstants.FIELD_UNDEFINED);
}
@Test