1. Suggest a JPA Unit test framework stackoverflow.comHow to unit test JPA code? is there any way to generate Unit Test case itself? Note: I am lazy and new to Unit Test code. |
2. hibernate jpa unit tests autodection does not work stackoverflow.comI have the following in persistence.xml
|
3. Question on unit testing and JPA forums.netbeans.orgHi all, I am currently developing a JSF app that access data contained in a mySQL database with JPA (TopLink). Entity classes have been generated from the mySQL db. I have three questions: - I want to unit test the busines logic that manipulate the entities different classes. I would like to use the Derby database for doing that. How can ... |
4. Unit test patterns with Hibernate coderanch.comI wouldn't test either unless you have a test generation tool that can reverse engineer tests from your DAOs. Assuming you have a common DAO pattern applied throughout your DAO layer all you will be doing is testing the same relatively small bit of code repeatedly. While this might be a good thing, you could end up with a large set ... |
5. hibernate unit testing coderanch.com |
6. Unit Testing when using Hibernate coderanch.com |
7. unit test for ZK+Hibernate zkoss.org |
8. Unit Testing persistance in hibernate forum.hibernate.orgI would like your ideas about unit testing in hibernate. I'm not thinking about dao mockups or using a in-memory database which I already use anyway. The recurring design problem that I have when unit testing my domain class is that some class have mandatory dependencies on other classes (e.g. "many-to-one" with "not-null" constraint relationships), so to test persistence on a ... |
9. Unit Testing Merge forum.hibernate.org |
10. Unit tests with hibernate forum.hibernate.org |
11. Hibernate 3.0.5 Unit Tests forum.hibernate.orgNewbie Joined: Wed Apr 06, 2005 12:30 am Posts: 7 I am running Hibernate 3.0.5. Trying to understand some of the internal workings, I am trying to run all the included JUnit tests in the distribution. Out of the included 616 tests, I get the following 7 failures, consistently. None of the configuration files in etc have been modified. Am I ... |
12. CGLIB bug, unit test provided.... forum.hibernate.orgAuthor Message yatesco Post subject: CGLIB bug, unit test provided.... Posted: Fri Jul 29, 2005 6:15 am Beginner Joined: Wed May 04, 2005 5:17 am Posts: 40 Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.0.5 Mapping documents: Code: |
13. Hibernate Unit test diffusion forum.hibernate.orgFolks, I find it be helpfull to know the percentage of test failure per release, and what testcases run ko. I've downloaded the latest release 3.1rc1 and had the tests run over derby/ oracle 10g and pg 8.0.3. I 'd have thought that 100% of the tests would have pass under oracle and pg, but it's not the case. As I ... |
14. How to Unit Testing Hibernate? forum.hibernate.orgI've been writing basic unit tests for beans that call hibernate APIs to query the database using Junit as normal. The basic hibernate mapping types are of course just beans, so it's more interesting to test whether a given query returns objects populated as you'd expect than to test whether their bean getter/setters work. The hard part is setting up a ... |
15. unit tests "hang" in 3.1.3 vs 3.1 final forum.hibernate.orgHibernate version: 3.1.3 I recently attempted to upgrade to 3.1.3 from 3.1 final and I have encountered problems with my unittests. Several of them quite reliably hang at the same location. My question is, first, is anyone else experiencing this behavior and second is anyone aware of any changes in 3.1.3 that may have led to this? The only other time ... |
16. Exporting/Importing records for unit tests forum.hibernate.org[b]Hibernate version:[/b] 3.1.2 [b]Mapping documents:[/b] Hibernate Annotations (3.1.8 beta) are used [b]Actual Question[/b] Hi, In case of issues I want to be able to export a subset of the production database and import the data into the test system (which is a "clean" database instance without any data) so that I can try to reproduce the issue in a controlled environment. ... |
17. Need Help With Unit Tests forum.hibernate.orgI'm new to Hibernate and I'm trying to get some basic unit tests working. I am getting a "not-null property references a null or transient value" error message. I have two domain objects: Pet and Category. Pet can belong to at most one category. I have two corresponding DAO's: PetDao and CategoryDao. In PetDaoTest I create a transient Category and call ... |
18. Hibernate unit tests are failed forum.hibernate.org |
19. unit testing of hibernate forum.hibernate.orghow can i write testcase using junit for fallowing code: private RetentionPeriod getDataRetentionPeriod(Long partnerId) throws Exception { RetentionPeriod period = null; Session s = null; Transaction tx = null; try { s = HibernateUtil.currentSession(); // start a new transaction tx = s.beginTransaction(); Query query = s.createQuery("from RetentionPeriod r where r.partnerId = :partnerId"); query.setLong("partnerId", partnerId.longValue()); List periodList = query.list(); period = (periodList.isEmpty()) ... |
20. Unit Testing in Isolation Concern forum.hibernate.orgHi Guys, I am unit testing some class with TestNG framework, we are using Hibernate as our base APIs with an abstraction built on top of it. I came across an issue, that I'd like to know answers to. I have a test class which has test cases numbered from 1 to 3 ( assume ). typically, i do : @BeforeClass ... |
21. unit testing my hibernate-based library forum.hibernate.orgI hope someone here can help with this, this might be a little off-topic. I currently have a library that is based on hibernate. I would like to write unit tests for this library and use an embedded database to hold data that is inserted/updated/deleted..etc during the tests. The production database that I use is postgres and I am using sequences ... |
22. Unit Testing when using Hibernate forum.hibernate.orgHi this is my first post here . I am a newbie with UnitTesting . Please suggest me I am using Unit Test to write Test Cases aganist Hibernate implementation and i am using HSQLDB Code: protected void setUp() throws Exception { Configuration configuration = ... |