From 8807595b1a1f64c5124d7a1b40ceeb48996c231e Mon Sep 17 00:00:00 2001 From: Markus Kreth Date: Tue, 22 Jan 2019 04:18:05 +0100 Subject: [PATCH] Person Gender tested. --- .../vaadin/clubhelper/vaadinclubhelper/dao/PersonDaoTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/dao/PersonDaoTest.java b/src/test/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/dao/PersonDaoTest.java index 9498827..7d7d569 100644 --- a/src/test/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/dao/PersonDaoTest.java +++ b/src/test/java/de/kreth/vaadin/clubhelper/vaadinclubhelper/dao/PersonDaoTest.java @@ -17,6 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.ContextConfiguration; +import de.kreth.vaadin.clubhelper.vaadinclubhelper.data.Gender; import de.kreth.vaadin.clubhelper.vaadinclubhelper.data.Person; import de.kreth.vaadin.clubhelper.vaadinclubhelper.ui.tests.TestConfiguration; @@ -43,6 +44,7 @@ public class PersonDaoTest { person.setSurname("surname"); person.setBirth(LocalDate.of(2018, 11, 8)); person.setPassword("password"); + person.setGender(Gender.MALE); assertTrue(entityManager.createNamedQuery(Person.QUERY_FINDALL, Person.class).getResultList().isEmpty()); }