projects
/
jpa-converters
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added test, that configure the JPA-mapping with XML-configuration-files
[jpa-converters]
/
src
/
test
/
java
/
de
/
juplo
/
jpa
/
converters
/
JPAConverterTest.java
diff --git
a/src/test/java/de/juplo/jpa/converters/JPAConverterTest.java
b/src/test/java/de/juplo/jpa/converters/JPAConverterTest.java
index
79e4405
..
c9f87cf
100644
(file)
--- a/
src/test/java/de/juplo/jpa/converters/JPAConverterTest.java
+++ b/
src/test/java/de/juplo/jpa/converters/JPAConverterTest.java
@@
-43,6
+43,13
@@
public class JPAConverterTest
testOffsetDateTime();
}
testOffsetDateTime();
}
+ @Test
+ public void testOffsetDateTimeXml()
+ {
+ em = Persistence.createEntityManagerFactory("xml").createEntityManager();
+ testOffsetDateTime();
+ }
+
public void testOffsetDateTime()
{
EierlegendeWollmilchSau ews;
public void testOffsetDateTime()
{
EierlegendeWollmilchSau ews;
@@
-63,6
+70,7
@@
public class JPAConverterTest
assertEquals(odt.toInstant(), ews.odt.toInstant());
}
assertEquals(odt.toInstant(), ews.odt.toInstant());
}
+
@Test
public void testZonedDateTimeAnnotated()
{
@Test
public void testZonedDateTimeAnnotated()
{
@@
-70,6
+78,13
@@
public class JPAConverterTest
testZonedDateTime();
}
testZonedDateTime();
}
+ @Test
+ public void testZonedDateTimeXml()
+ {
+ em = Persistence.createEntityManagerFactory("xml").createEntityManager();
+ testZonedDateTime();
+ }
+
public void testZonedDateTime()
{
EierlegendeWollmilchSau ews;
public void testZonedDateTime()
{
EierlegendeWollmilchSau ews;