[jboss-user] [JBoss Seam] - Re: Test database with Seam2, Maven and TestNG?

2008-02-06 Thread cory_prowse
I solved this problem with a bit of trickery using Ant within Maven. The behaviour is correct to the EJB3 spec of scoping rules for persistence.xml. I've submitted an issue with Surefire here which goes into more detail, including the ant hack: http://jira.codehaus.org/browse/SUREFIRE-443 Vie

[jboss-user] [JBoss Seam] - Re: Test database with Seam2, Maven and TestNG?

2008-01-17 Thread siarhei.dudzin
I don't think there is one, at least not with the multi module project layout. Vote for the issue if interested: http://jira.jboss.org/jira/browse/JBSEAM-2371 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120742#4120742 Reply to the post : http://www.jboss

[jboss-user] [JBoss Seam] - Re: Test database with Seam2, Maven and TestNG?

2008-01-16 Thread annechou
Would anyone be able to post a complete example of a successful Seam 2.0 SeamTest (as an EJB jar deployed to the embedded container) using Maven and TestNG? We have spent several weeks working on a solution without success. View the original post : http://www.jboss.com/index.html?module=bb&op=

[jboss-user] [JBoss Seam] - Re: Test database with Seam2, Maven and TestNG?

2008-01-16 Thread svadu
I am not sure I understand what exactly is the problem. Considering your test persistence unit has a different name than the one for production doesn't Peristence.createEntityManagerFactory(persistenceUnitName) just work for you? View the original post : http://www.jboss.com/index.html?module=b

[jboss-user] [JBoss Seam] - Re: Test database with Seam2, Maven and TestNG?

2008-01-16 Thread andrew.rw.robinson
In regards to ordering in 2.0.8: The ordering is not a concern. The problem is that both persistence.xml files are loaded and parsed. So my solution is important to ensure that the "main" persistence.xml is not used for unit tests. View the original post : http://www.jboss.com/index.html?modul

[jboss-user] [JBoss Seam] - Re: Test database with Seam2, Maven and TestNG?

2008-01-16 Thread svadu
Tbh, considering how much maven projects' (especially multimodule projects) layout is different from Seam project layout and considering how the Seam test framework 'tuned' for certain configurations and defaults I think it requires major work to make Seam tests work in maven projects. In the m

[jboss-user] [JBoss Seam] - Re: Test database with Seam2, Maven and TestNG?

2008-01-16 Thread ruettimac
Cool, Surefire Plugin version 2.4 is finally out. Supporting TestNG as a first citizen. I will try it out over the weekend if the combination maven, seam combo is working now as expected. Regards, Cyrill View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=41203

[jboss-user] [JBoss Seam] - Re: Test database with Seam2, Maven and TestNG?

2008-01-14 Thread [EMAIL PROTECTED]
That is good news :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119858#4119858 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119858 ___ jboss-user mailing list jboss-user

[jboss-user] [JBoss Seam] - Re: Test database with Seam2, Maven and TestNG?

2008-01-14 Thread svadu
Btw, maven starting from 2.0.8 puts test classpath before the source classpath (which wasn't the case before). This should make configuration quite simple. You'd need to enforce maven version then of course :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=411

[jboss-user] [JBoss Seam] - Re: Test database with Seam2, Maven and TestNG?

2008-01-12 Thread svadu
There is a problem with eclipse (if use WTP configuration) is that it doesn't like more than one persistence unit defined. As a workaround I defined the test persistence unit programmatically in my unit tests. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=41

[jboss-user] [JBoss Seam] - Re: Test database with Seam2, Maven and TestNG?

2008-01-10 Thread [EMAIL PROTECTED]
Thanks Andrew, I added this to the Seam knowledgebase http://alpha.seamframework.org:/Documentation/SeamWithMaven View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118647#4118647 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=

[jboss-user] [JBoss Seam] - Re: Test database with Seam2, Maven and TestNG?

2007-12-19 Thread andrew.rw.robinson
I got it working, but it was a configuration pain. For those that read this post here is a very quick howto: | * create src/main/conf - this will be files that are added to the war but not added to target/classes on build (and therefore will not interfere with testing) | * move src/main/

[jboss-user] [JBoss Seam] - Re: Test database with Seam2, Maven and TestNG?

2007-12-18 Thread thejavafreak
Try to add it in: src/test/resources/META-INF I haven't done this though. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114071#4114071 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114071