File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Testing an EJB application (TDD) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Testing an EJB application (TDD)" Watch "Testing an EJB application (TDD)" New topic
Author

Testing an EJB application (TDD)

Dom McMillan
Greenhorn

Joined: Jul 26, 2011
Posts: 8
Hello,

for a JSF maven application I would like to find out how I can easily test it using an embedded server (for fast turn-around times in TDD). I managed to created a drone test based on arquillian and drone on a remote adapter on JBoss AS7. But that takes too long too execute.

How can I easily create and fastly run tests in order to make TDD real fun (is there somewhere an example I could go through)? I thought of the possibility in a test class to use a @BeforeClass annotation to set up and start the server, a @Before annotation to initialize a context and seed the database, @Test for testing and later @AfterClass for shutting down the server. How are you guys test your applications?

Regards,

Dom
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Testing an EJB application (TDD)
 
Similar Threads
Test driven development
Wicket, TDD, evolutionary design
Clean Code A Handbook of Agile Software Craftsmanship - Test POJO
Can someone help me figure this out
How to motivate team for Unit testing