Re: Tips on using AsyncInvocation in DUnit Tests

2020-03-19 Thread Kirk Lund
Sure thing! package org.apache.geode.examples; import static org.apache.geode.test.dunit.VM.getVM; import static org.assertj.core.api.Assertions.assertThat; import java.io.Serializable; import java.util.concurrent.Future; import org.junit.Rule; import org.junit.Test; import org.apache.geode.te

Re: Tips on using AsyncInvocation in DUnit Tests

2020-03-18 Thread Anilkumar Gingade
Thanks Kirk. Can you add an example here... On Wed, Mar 18, 2020 at 11:12 AM Kirk Lund wrote: > Tips on using AsyncInvocation: > > * Always use await() or get() > * Both check and throw any remote exceptions > * Both use GeodeAwaitility Timeout and will throw TimeoutException if it’s > exceeded

Tips on using AsyncInvocation in DUnit Tests

2020-03-18 Thread Kirk Lund
Tips on using AsyncInvocation: * Always use await() or get() * Both check and throw any remote exceptions * Both use GeodeAwaitility Timeout and will throw TimeoutException if it’s exceeded * Use await() for Void types and get() when expecting a non-null value Recent improvements: Timeout now ge