ReplicationTestCase.java:
Change entryList and configEntryList from LinkedList to Set and renamed them to entriesToCleanup and configEntriesToCleanup.
Extracted method connect() and waitForSpecificMsg() + Changed the return type of the existing waitForSpecificMsg() methods.
In configureReplication(), added 2 String parameters + extracted method addSynchroServerEntry() and addConfigEntry().
Simplified code a lot.
*Test[Case].java:
Consequence of the changes to ReplicationTestCase.
Factorized code with ReplicationTestCase.
Various cleanups:
- used assertj
- used StaticUtils.close()
- made fields private
- used foreach
- used assertEquals() instead of assertTrue()
- removed try/catch/fail test anti pattern.
- let exceptions go up the stack
ProtocolWindowTest.java:
Extracted method searchNbMonitorEntries().