Skip to content

Commit

Permalink
HHH-7835 Updated the largeJar test to be completely isolated
Browse files Browse the repository at this point in the history
Conflicts:
	hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/packaging/PackagingTestCase.java
  • Loading branch information
brmeyer committed Dec 6, 2012
1 parent 94563b0 commit bcacfbd
Show file tree
Hide file tree
Showing 2 changed files with 207 additions and 3 deletions.
Expand Up @@ -331,9 +331,12 @@ protected File buildExternalJar() {
protected File buildLargeJar() {
String fileName = "large.jar";
JavaArchive archive = ShrinkWrap.create( JavaArchive.class, fileName );
// Build a large jar by adding all EntityManager packages and
// subpackages on the classpath.
archive.addPackages(true, "org.hibernate.ejb" );
// Build a large jar by adding a lorem ipsum file repeatedly.
for ( int i = 0; i < 100; i++ ) {
ArchivePath path = ArchivePaths.create( "META-INF/file" + i );
archive.addAsResource( new File( "src/test/resources/org/hibernate/jpa/test/packaging/loremipsum.txt" ),
path );
}

File testPackage = new File( packageTargetDir, fileName );
archive.as( ZipExporter.class ).exportTo( testPackage, true );
Expand Down

0 comments on commit bcacfbd

Please sign in to comment.