Re: Testing tip: Use IgnoredException as an AutoCloseable

2018-11-02 Thread John Blum
With IDE highlighting things as unused, you can either @SuppressWarnings("unused") on the method or statement highlighted or adjust your IDE inspections (perhaps more advisable), which is per project. On Fri, Nov 2, 2018 at 1:27 PM, Kirk Lund wrote: > The easiest way to use IgnoredException is a

Testing tip: Use IgnoredException as an AutoCloseable

2018-11-02 Thread Kirk Lund
The easiest way to use IgnoredException is as an AutoCloseable in a try-with-resource block and by specifying the Exception class: import static org.apache.geode.test.dunit.IgnoredException.addIgnoredException; import org.apache.geode.cache.client.ServerOperationException; @Test public void test