Add basic clone() testing to Identity/Score/Trust
Improve Identity/Score/Trust clone() testing:
- Check assertEquals() on all member fields
- Check assertNotSame() on all member fields except for enum and String since they will be re-used. For preventing db4o breakage it is critically important to not re-use member objects.
- NOTICE: The clone test will fail for Score and Trust since their clone implementation does NOT clone the truster/trustee yet. Will fix it in the following commit(s)
Improve Identity/Score/Trust clone() testing:
- Ensure that current time changes before we create the clone - the original object stores the current time in a member.
Fix Score.clone() to clone the truster/trustee:
- I've checked all callers and this change is safe to do.
- This fixes part of the failure of the unit tests which were introduced in the previous unit tests.
Fix Trust.clone() to clone the truster/trustee:
- I've checked all callers for safety, one required modification - this commit also contains that fix.
- This fixes part of the failure of the unit tests which were introduced in the previous unit tests.
Fix random testSetEdition() failure caused by missing Thread.sleep() at creation of OldLastChangedDate
Merge branch 'master' into event-notifications