-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: SEAM – TestNG – Integration Testing @In - entityManager
PostPosted: Wed Jun 30, 2010 2:49 pm 
Newbie

Joined: Wed Jun 30, 2010 2:47 pm
Posts: 1
Hello,

I have been working on an integration test using TestNG. I have read through sections and followed examples in books such as Beginning JBoss Seam and Seam 2.X Web Development. I have also done numerous searches across this and other forums.

Despite my reading, I am unable to create an integration test that is able to persist and import @In components. I try to set the values in the updateModelValues() method but still have no luck. If I were to run the same test by removing persistence and @In then my test completes.

I have tried numerous things including editing components-test.properties and persistence-test.xml. Both of which now affect how the application runs regularly on the server. Editing these simply to get tests to work when the application works regularly I’d imagine surely cannot be right.

What am I doing wrong? From my understanding I should not have to do anything extra to get @In and EntityManager to work when I am extending SeamTest.

Any help would be greatly appreciated.
Thank you
Phil


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.