public class ProcessDefinitionsCountTest extends AbstractTestCase
ProcessDefinitionsCount
expectedEx, shell, subFunction
Constructor and Description |
---|
ProcessDefinitionsCountTest() |
Modifier and Type | Method and Description |
---|---|
protected org.ow2.petals.cli.extension.command.monitoring.mo.api.AbstractMonitoringSubFunction |
buildSubFunction() |
void |
error_componentOptionWithoutValue()
Test the method 'execute()' against argument management, where:
the option '-n' is provided without argument
no other option is provided.
|
void |
error_errorListingProcessDefinitions()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
the option '--list-process-definitions' is provided without argument,
an error occurs getting the operation list from the probe.
|
void |
error_errorOnTableOption()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
the option '-t' is provided without argument,
an error occurs getting the operation list from the probe.
|
void |
error_errorQueryingProcessDefinitions()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
the option '--query-process-definitions' is provided with a valid argument,
an error occurs getting the operation list from the probe.
|
void |
error_listOptionWithNonexistentComponentId()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided does not exist,
the option '--list-process-definitions' is provided without argument.
|
void |
error_listOptionWithQueryOption()
Test the method 'execute()' against argument management, where:
the option '-n' is provided with an argument,
the option '--list-process-definitions' is provided without argument,
the option '--query-process-definitions' is provided with a valid argument.
|
void |
error_listOptionWithTableOption()
Test the method 'execute()' against argument management, where:
the option '-n' is provided with an argument,
the option '--list-process-definitions' is provided without argument,
the option '-t' is provided without argument.
|
void |
error_listProcessDefinitionsWithValue()
Test the method 'execute()' against argument management, where:
the option '-n' is provided with an argument,
the option '--list-process-definitions' is provided with an argument.
|
void |
error_noOptionProvided()
Test the method 'execute()' against argument management, where:
no option is provided
Expected results: an error occurs about bad argument number.
|
void |
error_onlyValidComponentOption()
Test the method 'execute()' against argument management, where:
the option '-n' is provided with an argument,
no other option is provided.
|
void |
error_queryOptionWithInvalidValue()
Test the method 'execute()' against argument management, where:
the option '-n' is provided with an argument,
the option '--query-process-definitions' is provided with an invalid argument.
|
void |
error_queryOptionWithNonexistentComponentId()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided does not exist,
the option '--query-process_defintions' is provided with a valid argument.
|
void |
error_queryOptionWithoutValue()
Test the method 'execute()' against argument management, where:
the option '-n' is provided with an argument,
the option '--query-process-definitions' is provided without argument.
|
void |
error_queryOptionWithTableOption()
Test the method 'execute()' against argument management, where:
the option '-n' is provided with an argument,
the option '--query-process-definitions' is provided with a valid argument,
the option '-t' is provided without argument.
|
void |
error_tableOptionWithNonexistentComponentId()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided does not exist,
the option '-t' is provided without argument.
|
void |
error_tableOptionWithValue()
Test the method 'execute()' against argument management, where:
the option '-n' is provided with an argument,
the option '-t' is provided with an argument.
|
void |
error_unrecognizedOption()
Test the method 'execute()' against argument management, where:
an unregonized option is provided
Expected results: an error occurs about bad argument number.
|
void |
nominal_listOption()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
the option '--list-process-definitions' is provided without argument,
no null value is returned for a metric,
no error occurs.
|
void |
nominal_listOptionWithNullValueAsProcessDefinitionInfo()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
the option '--list-process-definitions' is provided without argument,
a null value is returned for the metric associated to the information of process definitions.
|
void |
nominal_queryOptionForActiveCounterWithIndex()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
the option '--query-process-definitions' is provided with the arguments "ACTIVE" and an existing process
definition,
no null value is returned for a metric,
no error occurs.
|
void |
nominal_queryOptionForActiveCounterWithoutIndex()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
the option '--query-process-definitions' is provided with the argument "ACTIVE",
no null value is returned for a metric,
no error occurs.
|
void |
nominal_queryOptionForEndedCounterWithIndex()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
the option '--query-process-definitions' is provided with the arguments "ERROR" and an existing operation,
no null value is returned for a metric,
no error occurs.
|
void |
nominal_queryOptionForEndedCounterWithoutIndex()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
the option '--query-process-definitions' is provided with the argument "ENDED",
no null value is returned for a metric,
no error occurs.
|
void |
nominal_queryOptionForName()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
the option '--query-process-definitions' is provided with the argument "NAME",
no null value is returned for a metric,
no error occurs.
|
void |
nominal_queryOptionForSuspendedCounterWithIndex()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
the option '--query-process-definitions' is provided with the arguments "SUSPENDED" and an existing
operation,
no null value is returned for a metric,
no error occurs.
|
void |
nominal_queryOptionForSuspendedCounterWithoutIndex()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
the option '--query-process-definitions' is provided with the argument "SUSPENDED",
no null value is returned for a metric,
no error occurs.
|
void |
nominal_queryOptionWithNullValueAsProcessDefinitionInfo()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
the option '--query-process-definitions' is provided with a valid argument,
a null value is returned for the metric associated to the information of process definitions.
|
void |
nominal_tableOptionWithNullValueAsProcessDefinitionInfo()
Test the method 'execute()' against processing, where:
a connection to a Petals ESB container is established,
the SE Flowable identifier provided exists,
the option '-t' is provided without argument,
a null value is returned for the metric associated to the information of process definitions.
|
clearDataSets
setUpFunction
protected org.ow2.petals.cli.extension.command.monitoring.mo.api.AbstractMonitoringSubFunction buildSubFunction()
buildSubFunction
in class AbstractMonitoringSubFunctionTest
public void error_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 error_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 error_componentOptionWithoutValue() 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 error_onlyValidComponentOption() 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 error_listProcessDefinitionsWithValue() 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 error_listOptionWithQueryOption() 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 error_listOptionWithTableOption() 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 error_queryOptionWithoutValue() 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 error_queryOptionWithInvalidValue() 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 error_queryOptionWithTableOption() 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 error_tableOptionWithValue() 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 error_listOptionWithNonexistentComponentId() 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 non existent component
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void error_queryOptionWithNonexistentComponentId() 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 non existent component
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void error_tableOptionWithNonexistentComponentId() 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 non existent component
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void error_errorListingProcessDefinitions() 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 error_errorQueryingProcessDefinitions() 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 error_errorOnTableOption() 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 nominal_listOptionWithNullValueAsProcessDefinitionInfo() 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_queryOptionWithNullValueAsProcessDefinitionInfo() 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_tableOptionWithNullValueAsProcessDefinitionInfo() 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 nominal_listOption() 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 nominal_queryOptionForName() 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 nominal_queryOptionForActiveCounterWithoutIndex() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, org.ow2.petals.jmx.api.api.exception.ConnectionErrorException, IOException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
org.ow2.petals.jmx.api.api.exception.ConnectionErrorException
IOException
public void nominal_queryOptionForActiveCounterWithIndex() 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 nominal_queryOptionForSuspendedCounterWithoutIndex() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, org.ow2.petals.jmx.api.api.exception.ConnectionErrorException, IOException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
org.ow2.petals.jmx.api.api.exception.ConnectionErrorException
IOException
public void nominal_queryOptionForSuspendedCounterWithIndex() 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 nominal_queryOptionForEndedCounterWithoutIndex() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, org.ow2.petals.jmx.api.api.exception.ConnectionErrorException, IOException
Test the method 'execute()' against processing, where:
Expected results:
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
org.ow2.petals.jmx.api.api.exception.ConnectionErrorException
IOException
public void nominal_queryOptionForEndedCounterWithIndex() 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.