Which components are most thoroughly testable outside a container without requiring the creation of mock objects?

Your company has supported agile practices and as a policy, all their developers use test-driven
development. Tests are run early and often, starting with the individual developers up to nightly
tests and regularly scheduled durability tests. To make developers more productive in such an
environment, management wants unit tests to run as much as possible outside the container,
without requiring the application to be deployed to an actual server. This would reduce the time
spent waiting for test results. Which components are most thoroughly testable outside a container
without requiring the creation of mock objects?

Your company has supported agile practices and as a policy, all their developers use test-driven
development. Tests are run early and often, starting with the individual developers up to nightly
tests and regularly scheduled durability tests. To make developers more productive in such an
environment, management wants unit tests to run as much as possible outside the container,
without requiring the application to be deployed to an actual server. This would reduce the time
spent waiting for test results. Which components are most thoroughly testable outside a container
without requiring the creation of mock objects?

A.
CMP entity bean

B.
BMP entity bean using JDBC for persistence

C.
Stateless session bean using JPA for persistence

D.
Stateless session bean exposing a web service interface



Leave a Reply 0

Your email address will not be published. Required fields are marked *