Enterprise Java Development@TOPIC@

Chapter 28. Project 3 Testing

Note

The end-to-end scenario will test your end-to-end application in a "happy path" scenario. Any white-box or black-box testing of alternate and error paths would be appropriate to put in the separate unit and IT tests.

  1. Provide JUnit IT tests that verify the EJB functionality of eSales accessed through its remote interface using new access control restrictions.

  2. Provide JUnit IT tests that verify the EJB functionality of eBidbot using its new access control restrictions and ability to authenticate with eSales.

  3. Provide a JUnit IT tests that demonstrates the functionality of the JavaEE interceptor/validator.

  4. Implement the scripted use case below as an automated JUnit test and manually accessed script through the Web UI. All command line implementations must be wrapped in an Ant runtime script to encapsulate the classpath details in a portable manner (see the class jmsNotifier project for an example of using an Ant runtime script). The full JSE subscriber need not be part of the automated end-to-end JUnit test. The JUnit test/module must be delivered in a state that can be executed in a debugger -- whether directly within Eclipse or using a remote debugging session.

Figure 28.1. eMarket Full Sequence

eMarket Full Sequence