THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Awaitility -- await for some state to change
- CountDownLatch -- coordinate between VMs and/or threads
- Mockito Spy and Verify
- Verify with timeout can be used instead of Awaitility
- Wrap anything with spy or use it to implement a callback such as CacheListener
- Verify is used to validate number of invocations with optional timeout
- All timeouts should use GeodeAwaitility.getTimeout()
- Possible exceptions to the rule
- Busy waiting in loops (Awaitility is usually a better option than custom looping)
- Slow receiver/listener type testing (there’s probably a better way to do it)
Examples: SleepDistributedTest, MultiThreadedIntegrationTest
It’s not polite to eat all the exceptions...
...