public class PriorityThreadPoolExecutorTest extends Object
PriorityThreadPoolExecutor
.Constructor and Description |
---|
PriorityThreadPoolExecutorTest() |
Modifier and Type | Method and Description |
---|---|
void |
fifoEntryTestComparatorDifferentSession()
Tests that verify the functionality provided by the implementation of
PriorityThreadPoolExecutor.SessionEntry
. |
void |
fifoEntryTestNoComparatorDifferentSession()
Tests that verify the functionality provided by the implementation of
PriorityThreadPoolExecutor.SessionEntry
. |
void |
fifoEntryTestNoComparatorSameSession()
Tests that verify the functionality provided by the implementation of
PriorityThreadPoolExecutor.SessionEntry
. |
void |
fifoEntryTestWithComparatorSameSession()
Tests that verify the functionality provided by the implementation of
PriorityThreadPoolExecutor.SessionEntry
. |
void |
testErrorInWorkerRun()
Tests the state of PriorityThreadPoolExecutor workers
after an Error is thrown when the PriorityThreadPoolExecutor worker is running.
|
void |
testPrioritisation()
Asserts that, when enough work is being submitted to the executor for it
to start queuing work, prioritisation of work starts to occur.
|
void |
testRuntimeExceptionInWorkerRun()
Tests the state of PriorityThreadPoolExecutor workers
after a RuntimeException is thrown when the PriorityThreadPoolExecutor Worker is running.
|
public void fifoEntryTestNoComparatorSameSession() throws Exception
PriorityThreadPoolExecutor.SessionEntry
.
This test asserts that, without a provided comparator, entries are
considered equal, when they reference the same session.Exception
- an exceptionpublic void fifoEntryTestNoComparatorDifferentSession() throws Exception
PriorityThreadPoolExecutor.SessionEntry
.
This test asserts that, without a provided comparator, the first entry
created is 'less than' an entry that is created later.Exception
- an exceptionpublic void fifoEntryTestWithComparatorSameSession() throws Exception
PriorityThreadPoolExecutor.SessionEntry
.
This test asserts that, with a provided comparator, entries are
considered equal, when they reference the same session (the provided
comparator is ignored).Exception
- an exceptionpublic void fifoEntryTestComparatorDifferentSession() throws Exception
PriorityThreadPoolExecutor.SessionEntry
.
This test asserts that a provided comparator is used instead of the
(fallback) default behavior (when entries are referring different
sessions).Exception
- an exceptionpublic void testPrioritisation() throws Throwable
public void testRuntimeExceptionInWorkerRun() throws Throwable
DIRMINA1156Test
.Exception
- an exceptionThrowable
DIRMINA1156Test
,
Issue DIRMINA-1156: Inconsistent worker / idleWorker in ThreadPoolExecutorspublic void testErrorInWorkerRun() throws Throwable
DIRMINA1156Test
.Exception
- an exceptionThrowable
DIRMINA1156Test
,
Issue DIRMINA-1156: Inconsistent worker / idleWorker in ThreadPoolExecutorsCopyright © 2004–2023 Apache MINA Project. All rights reserved.