public class DeliveredIncomingMessagesTest extends AbstractMonitoringSubFunctionTest
DeliveredIncomingMessages
expectedEx, jmxApi, shell, subFunction
Constructor and Description |
---|
DeliveredIncomingMessagesTest() |
Modifier and Type | Method and Description |
---|---|
protected org.ow2.petals.cli.extension.command.monitoring.mo.api.AbstractMonitoringSubFunction |
buildSubFunction() |
void |
listingContainersWhenMessagesWasSent()
Test the method 'execute()' against argument management, where:
the option listing containers is set,
some messages was already sent by the transporter.
|
void |
listingContainersWhenNoMessagesWasSent()
Test the method 'execute()' against argument management, where:
the option listing containers is set,
any messages was already sent by the transporter.
|
void |
noArgumentProvided()
Test the method 'execute()' against argument management, where:
no option is provided
Expected results: an error occurs about bad argument number.
|
void |
queryingContainersByName()
Test the method 'execute()' against argument management, where:
the option querying containers is set to get index name.
|
void |
queryingContainersByNameWhenNoMessageWasSent()
Test the method 'execute()' against argument management, where:
the option querying containers is set to get index name,
any messages was already sent by the transporter.
|
void |
queryingContainersByNameWithUnrecognizedArg()
Test the method 'execute()' against argument management, where:
the option querying container is set to get index name,
another unrecognized option is provided.
|
void |
queryingContainersToGetErrorMessagesForAllContainers()
Test the method 'execute()' against argument management, where:
the option querying containers is set to get number of delivered message with message exchange status 'Error'
for all remote containers.
|
void |
queryingContainersToGetErrorMessagesForAllContainersWithAnotherUnrecognizedArg()
Test the method 'execute()' against argument management, where:
the option querying containers is set to get number of delivered message with message exchange status 'Error'
for all remote containers.
|
void |
queryingContainersToGetErrorMessagesForOneContainer()
Test the method 'execute()' against argument management, where:
the option querying containers is set to get number of delivered message with message exchange status 'Error'
for one remote container,
some messages were already sent to the remote container.
|
void |
queryingContainersToGetErrorMessagesForOneUnknownContainer()
Test the method 'execute()' against argument management, where:
the option querying containers is set to get number of delivered message with message exchange status 'Error'
for one remote container,
any message was already sent to the remote container.
|
void |
queryingContainersToGetPendingMessagesForAllContainers()
Test the method 'execute()' against argument management, where:
the option querying container is set to get number of delivered message with message exchange status
'Pending' for all remote containers.
|
void |
queryingContainersToGetPendingMessagesForAllContainersWithAnotherUnrecognizedArg()
Test the method 'execute()' against argument management, where:
the option querying containers is set to get number of delivered message with message exchange status
'Pending' for all remote containers.
|
void |
queryingContainersToGetPendingMessagesForOneContainer()
Test the method 'execute()' against argument management, where:
the option querying container is set to get number of delivered message with message exchange status
'Pending' for one remote container,
some messages were already sent to the remote container.
|
void |
queryingContainersToGetPendingMessagesForOneUnknownContainer()
Test the method 'execute()' against argument management, where:
the option querying container is set to get number of delivered message with message exchange status
'Pending' for one remote container,
any message was already sent to the remote container.
|
void |
queryingContainersToGetSucceededMessagesForAllContainers()
Test the method 'execute()' against argument management, where:
the option querying containers is set to get number of delivered message with message exchange status
'Succeeded' for all remote containers.
|
void |
queryingContainersToGetSucceededMessagesForAllContainersWithAnotherUnrecognizedArg()
Test the method 'execute()' against argument management, where:
the option querying containers is set to get number of delivered message with message exchange status
'Succeeded' for all remote containers.
|
void |
queryingContainersToGetSucceededMessagesForOneContainer()
Test the method 'execute()' against argument management, where:
the option querying containers is set to get number of delivered message with message exchange status
'Succeeded' for one remote container,
some messages were already sent to the remote container.
|
void |
queryingContainersToGetSucceededMessagesForOneUnknownContainer()
Test the method 'execute()' against argument management, where:
the option querying containers is set to get number of delivered message with message exchange status
'Succeeded' for one remote container,
any message was already sent to the remote container.
|
void |
queryingContainersWithInvalidValue()
Test the method 'execute()' against argument management, where:
the option querying containers is set but with an invalid value
Expected results: an error occurs about the missing argument.
|
void |
queryingContainersWithoutValue()
Test the method 'execute()' against argument management, where:
the option querying containers is set but without arguments
Expected results: an error occurs about the missing argument.
|
void |
table()
Test the method 'execute()' against argument management, where:
the option getting the full value table is given.
|
void |
unrecognizedArgument()
Test the method 'execute()' against argument management, where:
an unrecognized option is provided
Expected results: an error occurs about bad argument number.
|
setUpFunction
protected org.ow2.petals.cli.extension.command.monitoring.mo.api.AbstractMonitoringSubFunction buildSubFunction()
buildSubFunction
in class AbstractMonitoringSubFunctionTest
public void noArgumentProvided() 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 unrecognizedArgument() 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 listingContainersWhenNoMessagesWasSent() 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.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void listingContainersWhenMessagesWasSent() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against argument management, where:
Expected results: no error occurs.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
public void queryingContainersWithoutValue() 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 queryingContainersWithInvalidValue() 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 queryingContainersByName() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against argument management, where:
Expected results: no error occurs
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
public void queryingContainersByNameWhenNoMessageWasSent() 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, empty output returned.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
public void queryingContainersByNameWithUnrecognizedArg() 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 queryingContainersToGetPendingMessagesForAllContainers() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against argument management, where:
Expected results: no error occurs
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
public void queryingContainersToGetSucceededMessagesForAllContainers() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against argument management, where:
Expected results: no error occurs
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
public void queryingContainersToGetErrorMessagesForAllContainers() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against argument management, where:
Expected results: no error occurs
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
public void queryingContainersToGetPendingMessagesForAllContainersWithAnotherUnrecognizedArg() 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 queryingContainersToGetSucceededMessagesForAllContainersWithAnotherUnrecognizedArg() 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 queryingContainersToGetErrorMessagesForAllContainersWithAnotherUnrecognizedArg() 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 queryingContainersToGetPendingMessagesForOneContainer() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against argument management, where:
Expected results: no error occurs, the right value is returned.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
public void queryingContainersToGetSucceededMessagesForOneContainer() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against argument management, where:
Expected results: no error occurs, the right value is returned.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
public void queryingContainersToGetErrorMessagesForOneContainer() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against argument management, where:
Expected results: no error occurs, the right value is returned.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
public void queryingContainersToGetPendingMessagesForOneUnknownContainer() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against argument management, where:
Expected results: no error occurs, value '0' is returned.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
public void queryingContainersToGetSucceededMessagesForOneUnknownContainer() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against argument management, where:
Expected results: no error occurs, value '0' is returned.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
public void queryingContainersToGetErrorMessagesForOneUnknownContainer() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against argument management, where:
Expected results: no error occurs, value '0' is returned.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
public void table() throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionInvalidArgumentException, org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionMissingArgumentException, org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionMissingOptionsException, org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionBadArgumentNumberException, org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionInvalidException, org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, IOException
Test the method 'execute()' against argument management, where:
Expected results: no error occurs, all values are returned.
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionInvalidArgumentException
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionMissingArgumentException
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionMissingOptionsException
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionBadArgumentNumberException
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionInvalidException
org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
IOException
Copyright © 2005-2018 Linagora. All Rights Reserved.