Hibernate SVN: r21002 - entitymanager/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/ejb/test/packaging.
by hibernate-commits@lists.jboss.org
Author: alessandrolt
Date: 2011-12-23 08:58:02 -0500 (Fri, 23 Dec 2011)
New Revision: 21002
Modified:
entitymanager/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/ejb/test/packaging/JarVisitorTest.java
Log:
JBPAPP-7815: Auto scan for JPA entities breaks for Zipped Files. Fixed test case for JarVisitorTest.java
Modified: entitymanager/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/ejb/test/packaging/JarVisitorTest.java
===================================================================
--- entitymanager/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/ejb/test/packaging/JarVisitorTest.java 2011-12-19 09:15:27 UTC (rev 21001)
+++ entitymanager/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/ejb/test/packaging/JarVisitorTest.java 2011-12-23 13:58:02 UTC (rev 21002)
@@ -89,7 +89,9 @@
jarUrl = new URL ("vfszip:./target/test-packages/defaultpar.par");
jarVisitor = JarVisitorFactory.getVisitor(jarUrl, getFilters(), null);
- assertEquals(FileZippedJarVisitor.class.getName(), jarVisitor.getClass().getName());
+ //ideally it should be FileZippedJarVisitor as well, but there is a bug in FileZippedJarVisitor
+ //which causes regression for some tests in EAP test suite. InputStreamZippedJarVisitor is safer than it, for now.
+ assertEquals(InputStreamZippedJarVisitor.class.getName(), jarVisitor.getClass().getName());
jarUrl = new URL ("vfsfile:./target/test-packages/explodedpar.par");
jarVisitor = JarVisitorFactory.getVisitor(jarUrl, getFilters(), null);