ant « Test « JPA Q&A





1. running junit tests in ant with hsqldb    forum.hibernate.org

I am attempting to run some simple junit tests in ANT with hsqldb. I seem to have hit the usual issue with beginners of how to configure hibernate. I am using the ThreadLocalSession pattern with the following way of getting the session factory... SessionFactory factory = new Configuration().configure().buildSessionFactory(); Should I use a hibernate.cfg.xml or a hibernate.properties file? Or does it not ...

2. ant eg sorta works, ant junit fail in foobar test    forum.hibernate.org

hi, trying to run the junit tests on mysql 4.0.19-0 on fedora. ant eg runs fine except for the complaint about the clover tasks (do i need this at this point?). ant junit says: [taskdef] Could not load definitions from resource clovertasks. It could not be found. cleantestdb: splash: init: [echo] Build Hibernate-2.1 (2004-02-24 02:00:15) [mkdir] Created dir: /Z/Users/ray/java/unpacked/hibernate-2.1/build [copy] Copying ...

3. newbie question - ant - Failed to copy test.lck    forum.hibernate.org

Beginner Joined: Sat Dec 16, 2006 9:53 pm Posts: 31 Location: Brisbane, Australia Please help a dumb newbie with a test.lck problem. Hibernate version: 3.? - how do I find out? I'm doing the tutorial in chapter 1 of the hibernate manual... In section 1.2.6. Loading and storing objects we build and run with the command: Code: ant run -Daction=store But ...