public class IncomingServiceContractRequestsCountTest extends AbstractTestCase
IncomingServiceContractRequestsCount
expectedEx, shell, subFunction
Constructor and Description |
---|
IncomingServiceContractRequestsCountTest() |
Modifier and Type | Method and Description |
---|---|
protected org.ow2.petals.cli.extension.command.monitoring.mo.api.AbstractMonitoringSubFunction |
buildSubFunction() |
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,
the option '--list-services' is provided without argument.
|
void |
testExecute_01()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided does not exist,
the option '--query-services' is provided with a valid argument.
|
void |
testExecute_02()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided does not exist,
the option '-t' is provided without argument.
|
void |
testExecute_03()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided exists,
the option '--list-services' is provided without argument,
an error occurs getting the operation list from the probe.
|
void |
testExecute_04()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided exists,
the option '--query-services' is provided with a valid argument,
an error occurs getting the operation list from the probe.
|
void |
testExecute_05()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided exists,
the option '-t' is provided without argument,
an error occurs getting the operation list from the probe.
|
void |
testExecute_06()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided exists,
the option '--list-services' is provided without argument,
a null value is returned for the metric associated to the incoming ws-request counter,
Expected results:
no error,
no operation is displayed.
|
void |
testExecute_07()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided exists,
the option '--query-services' is provided with a valid argument,
a null value is returned for the metric associated to the incoming web-service contract request counter,
Expected results:
no error,
no operation is displayed.
|
void |
testExecute_08()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided exists,
the option '-t' is provided without argument,
a null value is returned for the metric associated to the incoming ws-request counter,
Expected results:
no error,
no operation is displayed.
|
void |
testExecute_09()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided exists,
the option '-list-services' is provided without argument,
no null value is returned for a metric,
no error occurs.
|
void |
testExecute_10()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided exists,
the option '-query-services' is provided with the argument "NAME",
no null value is returned for a metric,
no error occurs.
|
void |
testExecute_11()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided exists,
the option '--query-services' is provided with the argument "COUNT",
no null value is returned for a metric,
no error occurs.
|
void |
testExecute_12()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the BC SOAP identifier provided exists,
the option '--query-services' is provided with the arguments "COUNT" and an existing operation,
no null value is returned for a metric,
no error occurs.
|
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,
no other option is provided.
|
void |
testExecute_Error_04()
Test the method 'execute()' against argument management, where:
the option '-n' is provided with an argument,
the option '--list-services' is provided with an argument.
|
void |
testExecute_Error_05()
Test the method 'execute()' against argument management, where:
the option '-n' is provided with an argument,
the option '--list-services' is provided without argument,
the option '--query-services' is provided with a valid argument.
|
void |
testExecute_Error_06()
Test the method 'execute()' against argument management, where:
the option '-n' is provided with an argument,
the option '--list-services' is provided without argument,
the option '-t' is provided without argument.
|
void |
testExecute_Error_07()
Test the method 'execute()' against argument management, where:
the option '-n' is provided with an argument,
the option '--query-services' is provided without argument.
|
void |
testExecute_Error_08()
Test the method 'execute()' against argument management, where:
the option '-n' is provided with an argument,
the option '--query-services' is provided with an invalid argument.
|
void |
testExecute_Error_09()
Test the method 'execute()' against argument management, where:
the option '-n' is provided with an argument,
the option '--query-services' is provided with a valid argument,
the option '-t' is provided without argument.
|
void |
testExecute_Error_10()
Test the method 'execute()' against argument management, where:
the option '-n' is provided with an argument,
the option '-t' is provided with an argument.
|
assertCactiIncomingCountOutput, assertCactiIncomingResponseTimesOutput, assertCactiOutgoingCountOutput, assertCactiOutgoingResponseTimesOutput, assertCactiResponseTimesOutputOfQueryWithArg, clearDataSets
setUpFunction
public IncomingServiceContractRequestsCountTest()
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 bad number of arguments.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void testExecute_Error_04() 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 bad number of arguments.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void testExecute_Error_05() 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 bad number of arguments.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void testExecute_Error_06() 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 bad number of arguments.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void testExecute_Error_07() 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_08() 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 invalid argument.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void testExecute_Error_09() 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 bad number of arguments.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void testExecute_Error_10() 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 bad number of arguments.
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 about the unexisting component
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void testExecute_02() 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_03() 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 testExecute_04() 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 testExecute_05() 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 testExecute_06() 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 testExecute_07() 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 testExecute_08() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
public void testExecute_09() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
public void testExecute_10() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
public void testExecute_11() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
public void testExecute_12() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
Copyright © 2005-2018 Linagora. All Rights Reserved.