This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Testing an EJB application (TDD)" Watch "Testing an EJB application (TDD)" New topic

Testing an EJB application (TDD)

Dom McMillan

Joined: Jul 26, 2011
Posts: 8

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?


I agree. Here's the link:
subject: Testing an EJB application (TDD)
jQuery in Action, 3rd edition