Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Testing an EJB application (TDD)  RSS feed

Dom McMillan
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!