public class IncomingHttpRequestsCountTest extends AbstractTestCase
IncomingHttpRequestsCount
expectedEx, shell, subFunction
Constructor and Description |
---|
IncomingHttpRequestsCountTest() |
Modifier and Type | Method and Description |
---|---|
protected org.ow2.petals.cli.extension.command.monitoring.mo.api.AbstractMonitoringSubFunction |
buildSubFunction() |
void |
informationRequestCountNull()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided exists,
a null value is returned for the metric associated to the information
HTTP request counter,
Expected results:
no error,
the metric value associated to the information HTTP request counter
is not returned,
other values are correctly displayed.
|
void |
noNullValue()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided exists,
no null value is returned for a metric,
no error occurs.
|
void |
serviceContractRequestCountNull()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided exists,
a null value is returned for the metric associated to the service contract request counter,
Expected results:
no error,
the metric value associated to the service contract request counter is not returned,
other values are correctly displayed.
|
void |
testExecute_00()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided does not exist.
|
void |
testExecute_01()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided exists,
error occurs getting incoming HTTP request counter value.
|
void |
testExecute_Error_00()
Test the method 'execute()' against argument management, where:
no option is provided
Expected results: an error occurs about bad argument number.
|
void |
testExecute_Error_01()
Test the method 'execute()' against argument management, where:
an unregonized option is provided
Expected results: an error occurs about bad argument number.
|
void |
testExecute_Error_02()
Test the method 'execute()' against argument management, where:
the option '-n' is provided without argument
no other option is provided.
|
void |
testExecute_Error_03()
Test the method 'execute()' against argument management, where:
the option '-n' is provided with an argument,
the option '-r' is missing.
|
void |
unknownRequestCountNull()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided exists,
a null value is returned for the metric associated to the unknown
HTTP request counter,
Expected results:
no error,
the metric value associated to the unknown HTTP request counter is
not returned,
other values are correctly displayed.
|
void |
wsRequestCountNull()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided exists,
a null value is returned for the metric associated to the HTTP
ws-request counter,
Expected results:
no error,
the metric value associated to the HTTP ws-request counter is not
returned,
other values are correctly displayed.
|
assertCactiIncomingCountOutput, assertCactiIncomingResponseTimesOutput, assertCactiOutgoingCountOutput, assertCactiOutgoingResponseTimesOutput, assertCactiResponseTimesOutputOfQueryWithArg, clearDataSets
setUpFunction
protected org.ow2.petals.cli.extension.command.monitoring.mo.api.AbstractMonitoringSubFunction buildSubFunction()
buildSubFunction
in class AbstractMonitoringSubFunctionTest
public void testExecute_Error_00() 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 testExecute_Error_01() 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 testExecute_Error_02() 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 the missing argument.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void testExecute_Error_03() 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 the missing argument.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void testExecute_00() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Test the method 'execute()' against processing, where:
Expected results: An error occurs about the unexisting component
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void testExecute_01() 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 informationRequestCountNull() 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 unknownRequestCountNull() 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 serviceContractRequestCountNull() 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 wsRequestCountNull() 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 noNullValue() 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.