This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
for a JSFmaven 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?