[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-2813) CacheableFileTest Failing Because Mapping File Doesn't Exist

Steve Ebersole (JIRA) noreply at atlassian.com
Wed Oct 3 02:29:24 EDT 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-2813.
-------------------------------

    Resolution: Fixed

fixed, toURI() also works on linux...

> CacheableFileTest Failing Because Mapping File Doesn't Exist
> ------------------------------------------------------------
>
>                 Key: HHH-2813
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2813
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: testsuite
>            Reporter: James Carman
>         Attachments: CacheaableFileTest.patch
>
>
> When running the test suite from a fresh trunk checkout, I get one little failing test in the maven 2 based build:
> junit.framework.AssertionFailedError
> 	at org.hibernate.test.cfg.CacheableFileTest.setUp(CacheableFileTest.java:26)
> 	at org.hibernate.junit.UnitTestCase.runBare(UnitTestCase.java:34)
> 	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
> I changed the code just a bit (patch attached) to get it to work.  This could be a platform issue (I'm on Windows XP Pro SP2), but it'd be nice if it worked on all platforms.  Here's what I changed so you don't have to open the patch:
> mappingFile = new File( getClass().getClassLoader().getResource( MAPPING ).getFile() );
> changes to:
> mappingFile = new File( getClass().getClassLoader().getResource( MAPPING ).toURI() );

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list