public class DeliveredMessagesTest extends AbstractMonitoringSubFunctionTest
DeliveredMessages
expectedEx, jmxApi, shell, subFunction
Constructor and Description |
---|
DeliveredMessagesTest() |
Modifier and Type | Method and Description |
---|---|
void |
anyOptionProvided()
Test the method 'execute()' against argument management, where:
any option is provided
Expected results: an error occurs about bad argument number.
|
protected org.ow2.petals.cli.extension.command.monitoring.mo.api.AbstractMonitoringSubFunction |
buildSubFunction() |
void |
metricsAvailable()
Test the method 'execute()' against argument management, where:
no option is provided,
metrics are available.
|
void |
noMetricsAvailable()
Test the method 'execute()' against argument management, where:
no option is provided,
no metrics are available (no call was done).
|
setUpFunction
protected org.ow2.petals.cli.extension.command.monitoring.mo.api.AbstractMonitoringSubFunction buildSubFunction()
buildSubFunction
in class AbstractMonitoringSubFunctionTest
public void anyOptionProvided() 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 noMetricsAvailable() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Test the method 'execute()' against argument management, where:
Expected results: no error occurs and metrics are returned with values '0'.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void metricsAvailable() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Test the method 'execute()' against argument management, where:
Expected results: no error occurs and the right metrics are returned.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
Copyright © 2005-2018 Linagora. All Rights Reserved.