public class AsyncExecutorThreadPoolTest extends AbstractTestCase
AsyncExecutorThreadPool
expectedEx, shell, subFunction
Constructor and Description |
---|
AsyncExecutorThreadPoolTest() |
Modifier and Type | Method and Description |
---|---|
protected org.ow2.petals.cli.extension.command.monitoring.mo.api.AbstractMonitoringSubFunction |
buildSubFunction() |
void |
componentIdDoesNotExist()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided does not exist.
|
void |
errorGettingValues()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
error occurs getting asynchronous job executor thread pool values.
|
void |
nominal()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
no null value is returned for metric,
no error will occur.
|
void |
noOptionProvided()
Test the method 'execute()' against argument management, where:
no option is provided
Expected results: an error occurs about bad argument number.
|
void |
nullValueForCurrentActiveThreads()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
a null value is returned for the metric associated to the current active threads of asynchronous job executor
thread pool,
Expected results:
no error,
the metric value associated to the current active threads of asynchronous job executor thread pool is not
returned,
other values are correctly displayed.
|
void |
nullValueForCurrentEnqueuedRequests()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
a null value is returned for the metric associated to the current enqueued request number in HTTP server
thread pool,
Expected results:
no error,
the metric value associated to the current enqueued request number in asynchronous job executor thread pool
is not returned,
other values are correctly displayed.
|
void |
nullValueForCurrentIdleThreads()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
a null value is returned for the metric associated to the current idle threads of asynchronous job executor
thread pool,
Expected results:
no error,
the metric value associated to the current idle threads of asynchronous job executor thread pool is not
returned,
other values are correctly displayed.
|
void |
nullValueForMaxActiveThreads()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
a null value is returned for the metric associated to the max active threads of asynchronous job executor
thread pool,
Expected results:
no error,
the metric value associated to the max active threads of asynchronous job executor thread pool is not
returned,
other values are correctly displayed.
|
void |
nullValueForMaxEnqueuedRequests()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
a null value is returned for the metric associated to the max enqueued request number in HTTP server thread
pool,
Expected results:
no error,
the metric value associated to the max enqueued request number in asynchronous job executor thread pool is
not returned,
other values are correctly displayed.
|
void |
nullValueForMaxIdleThreads()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
a null value is returned for the metric associated to the max idle threads of asynchronous job executor
thread pool,
Expected results:
no error,
the metric value associated to the max idle threads of asynchronous job executor thread pool is not returned,
other values are correctly displayed.
|
void |
nullValueForMaxSize()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
a null value is returned for the metric associated to the max size of asynchronous job executor thread pool,
Expected results:
no error,
the metric value associated to the max size of asynchronous job executor thread pool is not returned,
other values are correctly displayed.
|
void |
nullValueForMinSize()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
a null value is returned for the metric associated to the min size of asynchronous job executor thread pool,
Expected results:
no error,
the metric value associated to the min size of asynchronous job executor thread pool is not returned,
other values are correctly displayed.
|
void |
unrecognizedOption()
Test the method 'execute()' against argument management, where:
an unregonized option is provided
Expected results: an error occurs about bad argument number.
|
clearDataSets
setUpFunction
protected org.ow2.petals.cli.extension.command.monitoring.mo.api.AbstractMonitoringSubFunction buildSubFunction()
buildSubFunction
in class AbstractMonitoringSubFunctionTest
public void noOptionProvided() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Test the method 'execute()' against argument management, where:
Expected results: an error occurs about bad argument number.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void unrecognizedOption() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Test the method 'execute()' against argument management, where:
Expected results: an error occurs about bad argument number.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void componentIdDoesNotExist() throws Exception
Test the method 'execute()' against processing, where:
Expected results: An error occurs about the non existent component
Exception
public void errorGettingValues() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Test the method 'execute()' against processing, where:
Expected results: An error occurs
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void nullValueForMaxActiveThreads() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void nullValueForCurrentActiveThreads() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void nullValueForCurrentIdleThreads() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void nullValueForMaxIdleThreads() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void nullValueForMaxEnqueuedRequests() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void nullValueForCurrentEnqueuedRequests() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void nullValueForMaxSize() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void nullValueForMinSize() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void nominal() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Copyright © 2005-2018 Linagora. All Rights Reserved.