Skip to content

Commit

Permalink
simplify location of package.jdo in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brettporter committed Mar 27, 2006
1 parent b760db4 commit 0118338
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1785,11 +1785,7 @@ private ContinuumStore createStore()
System.setProperty( (String) entry.getKey(), (String) entry.getValue() );
}

File file = File.createTempFile( "continuum-jdo", ".tmp" );
file.deleteOnExit();
IOUtil.copy( getClass().getResourceAsStream( "/META-INF/package.jdo" ), new FileOutputStream( file ) );

SchemaTool.createSchemaTables( new URL[]{file.toURL()}, false );
SchemaTool.createSchemaTables( new URL[]{getClass().getResource( "/META-INF/package.jdo" )}, false );

PersistenceManagerFactory pmf = jdoFactory.getPersistenceManagerFactory();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ protected ContinuumStore getStore()
System.setProperty( (String) entry.getKey(), (String) entry.getValue() );
}

File file = getTestFile( "../continuum-model/target/classes/META-INF/package.jdo" );

SchemaTool.createSchemaTables( new URL[]{file.toURL()}, false );
SchemaTool.createSchemaTables( new URL[]{getClass().getResource( "/META-INF/package.jdo" )}, false );

// ----------------------------------------------------------------------
// Check the configuration
Expand Down

0 comments on commit 0118338

Please sign in to comment.