I haven't been able to get Mockito to do verification on close() - it always 
goes to an abstract superclass of SocketChannel and throws an NPE.
    doNothing().when(mockChannel).close();
    verify(mockChannel, times(1)).close();

java.lang.NullPointerException
        at 
java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:111)
        at 
org.apache.geode.internal.net.NioSslEngineTest.closeWhenSocketWriteError(NioSslEngineTest.java:372)
        

[ Full content available at: https://github.com/apache/geode/pull/3075 ]
This message was relayed via gitbox.apache.org for 
[email protected]

Reply via email to