Improve TestGroupChannelMemberArrival
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 28 Sep 2011 20:36:42 +0000 (20:36 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 28 Sep 2011 20:36:42 +0000 (20:36 +0000)
commit269978fb82bed026b43344ec5c21867901704ff8
tree6177239930bace62f926c8706ffb39517f50cdef
parent57a7d7ccaeedd46515525e979f9263b9849aeee1
Improve TestGroupChannelMemberArrival
1. Add synchronization when accessing TestMbrListener.members.
This should fix the failures observed by Gump.
2. Remove unused method #clear().
3. Improve messages printed to System.out during the test:
- Add timestamps
- Add hash code of threads (because thread names are not unique: They all are either "Membership-MemberAdded." or "Membership-MemberDisappeared.").
- Add current length of members list
4. Print messages when memberAdded()/memberDisappeared() performed no work.
That is if notification arrives twice for the same Member. I have not observed such events when running the tests.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1177050 13f79535-47bb-0310-9956-ffa450edef68
test/org/apache/catalina/tribes/group/TestGroupChannelMemberArrival.java