Listener Example 2

Test Implementations of Listeners

This is the oppossite of Listener Example 1. Instead of testing UserService, we want to test a client that uses UserService. We will be testing a UserReplicationService which just listens for events that come out of UserService and replicates them. In this test, we end up testing a listener implementation and have no need to mock a listener since there are no addXXXListener methods on the UserReplicationService api. This example consists of a few tests on one system. Here are the files for this example....