public class DatabaseConnectionPoolTest extends AbstractTestCase
DatabaseConnectionPool
expectedEx, shell, subFunction
Constructor and Description |
---|
DatabaseConnectionPoolTest() |
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 |
nullValueForCurrentActiveConnections()
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 connections of database connection
pool,
Expected results:
no error,
the metric value associated to the current active connections of database connection pool is not returned,
other values are correctly displayed.
|
void |
nullValueForCurrentIdleConnections()
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 connections of database connection
pool,
Expected results:
no error,
the metric value associated to the current idle connections of database connection pool is not returned,
other values are correctly displayed.
|
void |
nullValueForMaxActiveConnections()
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 connections of database connection pool,
Expected results:
no error,
the metric value associated to the max active connections of database connection pool is not returned,
other values are correctly displayed.
|
void |
nullValueForMaxActiveSize()
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 active connections of database
connection pool,
Expected results:
no error,
the metric value associated to the max size of active connections of database connection pool is not
returned,
other values are correctly displayed.
|
void |
nullValueForMaxIdleConnections()
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 connections of database connection pool,
Expected results:
no error,
the metric value associated to the max idle connections of database connection pool is not returned,
other values are correctly displayed.
|
void |
nullValueForMaxIdleSize()
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 idle connections of database connection
pool,
Expected results:
no error,
the metric value associated to the max size of idle connections of database connection 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 nullValueForMaxActiveConnections() 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 nullValueForCurrentActiveConnections() 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 nullValueForCurrentIdleConnections() 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 nullValueForMaxIdleConnections() 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 nullValueForMaxActiveSize() 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 nullValueForMaxIdleSize() 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.