It’s a Java (using JUnit) enterprise Web application with no mock objects pre-built, and it would require a vast amount of time not estimated to create them. Is there a testing paradigm that would give me “some” test coverage, but not total coverage?
It’s a Java (using JUnit) enterprise Web application with no mock objects pre-built, and
Share
Have you tried a dynamic mocking framework such as EasyMock? It does not require you to “create” a Mock object in that you would have to write the entire class – you specify the behavior you want within the test itself.
An example of a class that uses a
UserServiceto find details about a User in order to log someone in: