Added test, that configure the JPA-mapping with XML-configuration-files
[jpa-converters] / src / test / java / de / juplo / jpa / converters / JPAConverterTest.java
index 79e4405..c9f87cf 100644 (file)
@@ -43,6 +43,13 @@ public class JPAConverterTest
     testOffsetDateTime();
   }
 
+  @Test
+  public void testOffsetDateTimeXml()
+  {
+    em = Persistence.createEntityManagerFactory("xml").createEntityManager();
+    testOffsetDateTime();
+  }
+
   public void testOffsetDateTime()
   {
     EierlegendeWollmilchSau ews;
@@ -63,6 +70,7 @@ public class JPAConverterTest
     assertEquals(odt.toInstant(), ews.odt.toInstant());
   }
 
+
   @Test
   public void testZonedDateTimeAnnotated()
   {
@@ -70,6 +78,13 @@ public class JPAConverterTest
     testZonedDateTime();
   }
 
+  @Test
+  public void testZonedDateTimeXml()
+  {
+    em = Persistence.createEntityManagerFactory("xml").createEntityManager();
+    testZonedDateTime();
+  }
+
   public void testZonedDateTime()
   {
     EierlegendeWollmilchSau ews;