continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r389187 - in /maven/continuum/branches/continuum-1.0.x: continuum-store/src/test/java/org/apache/maven/continuum/store/ContinuumStoreTest.java continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java
Date Mon, 27 Mar 2006 16:16:37 GMT
Author: brett
Date: Mon Mar 27 08:16:35 2006
New Revision: 389187

URL: http://svn.apache.org/viewcvs?rev=389187&view=rev
Log:
simplify location of package.jdo in tests

Modified:
    maven/continuum/branches/continuum-1.0.x/continuum-store/src/test/java/org/apache/maven/continuum/store/ContinuumStoreTest.java
    maven/continuum/branches/continuum-1.0.x/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java

Modified: maven/continuum/branches/continuum-1.0.x/continuum-store/src/test/java/org/apache/maven/continuum/store/ContinuumStoreTest.java
URL: http://svn.apache.org/viewcvs/maven/continuum/branches/continuum-1.0.x/continuum-store/src/test/java/org/apache/maven/continuum/store/ContinuumStoreTest.java?rev=389187&r1=389186&r2=389187&view=diff
==============================================================================
--- maven/continuum/branches/continuum-1.0.x/continuum-store/src/test/java/org/apache/maven/continuum/store/ContinuumStoreTest.java
(original)
+++ maven/continuum/branches/continuum-1.0.x/continuum-store/src/test/java/org/apache/maven/continuum/store/ContinuumStoreTest.java
Mon Mar 27 08:16:35 2006
@@ -1785,11 +1785,7 @@
             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();
 

Modified: maven/continuum/branches/continuum-1.0.x/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java
URL: http://svn.apache.org/viewcvs/maven/continuum/branches/continuum-1.0.x/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java?rev=389187&r1=389186&r2=389187&view=diff
==============================================================================
--- maven/continuum/branches/continuum-1.0.x/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java
(original)
+++ maven/continuum/branches/continuum-1.0.x/continuum-test/src/main/java/org/apache/maven/continuum/AbstractContinuumTest.java
Mon Mar 27 08:16:35 2006
@@ -129,9 +129,7 @@
             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



Mime
View raw message