Fixed misunderstanding with respect to excludeUnlistedClasses default in JPA 2.0

Issue: SPR-10767
(cherry picked from commit d0948f1)
This commit is contained in:
Juergen Hoeller
2013-07-31 23:40:59 +02:00
parent 5b4dcbfcb9
commit 85c9ed005d
3 changed files with 32 additions and 39 deletions

View File

@@ -351,7 +351,7 @@ public class PersistenceXmlParsingTests {
PersistenceUnitInfo noExclude = info[0];
assertNotNull("noExclude should not be null.", noExclude);
assertEquals("noExclude name is not correct.", "NoExcludeElement", noExclude.getPersistenceUnitName());
assertTrue("Exclude unlisted should default true in 2.0.", noExclude.excludeUnlistedClasses());
assertFalse("Exclude unlisted still defaults to false in 2.0.", noExclude.excludeUnlistedClasses());
PersistenceUnitInfo emptyExclude = info[1];
assertNotNull("emptyExclude should not be null.", emptyExclude);