Author: steve.ebersole(a)jboss.com
Date: 2007-10-03 02:26:59 -0400 (Wed, 03 Oct 2007)
New Revision: 14058
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/cfg/CacheableFileTest.java
Log:
HHH-2813 : platform incompat
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/cfg/CacheableFileTest.java
===================================================================
---
core/trunk/testsuite/src/test/java/org/hibernate/test/cfg/CacheableFileTest.java 2007-10-03
06:17:01 UTC (rev 14057)
+++
core/trunk/testsuite/src/test/java/org/hibernate/test/cfg/CacheableFileTest.java 2007-10-03
06:26:59 UTC (rev 14058)
@@ -22,7 +22,7 @@
protected void setUp() throws Exception {
super.setUp();
- mappingFile = new File( getClass().getClassLoader().getResource( MAPPING ).getFile()
);
+ mappingFile = new File( getClass().getClassLoader().getResource( MAPPING ).toURI() );
assertTrue( mappingFile.exists() );
File cached = new File( mappingFile.getParentFile(), mappingFile.getName() +
".bin" );
if ( cached.exists() ) {
Show replies by date