public class WebSessionResourcesTest
extends BaseTest
WebSessionResources close works as expected w.r.t AbstractChannel.CloseFuture
associated with it.| Constructor and Description |
|---|
WebSessionResourcesTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testChannelPromiseWithNullExecutor()
Validates
WebSessionResources.close() throws NPE when closefuture passed to WebSessionResources doesn't
have a valid channel and EventExecutor associated with it. |
void |
testChannelPromiseWithValidExecutor()
Validates successful
WebSessionResources.close() with valid CloseFuture and other parameters. |
void |
testCloseWithListener()
Validates successful
WebSessionResources.close() with valid CloseFuture and TestClosedListener
getting invoked which is added to the close future. |
void |
testDoubleClose()
Validates double call to
WebSessionResources.close() doesn't throw any exception. |
public void testChannelPromiseWithNullExecutor()
throws Exception
WebSessionResources.close() throws NPE when closefuture passed to WebSessionResources doesn't
have a valid channel and EventExecutor associated with it.Exceptionpublic void testChannelPromiseWithValidExecutor()
throws Exception
WebSessionResources.close() with valid CloseFuture and other parameters.Exceptionpublic void testDoubleClose()
throws Exception
WebSessionResources.close() doesn't throw any exception.Exceptionpublic void testCloseWithListener()
throws Exception
WebSessionResources.close() with valid CloseFuture and TestClosedListener
getting invoked which is added to the close future.ExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.