public class IncomingConnectionsTest extends AbstractMonitoringSubFunctionTest
IncomingConnections
expectedEx, jmxApi, shell, subFunction
Constructor and Description |
---|
IncomingConnectionsTest() |
Modifier and Type | Method and Description |
---|---|
protected org.ow2.petals.cli.extension.command.monitoring.mo.api.AbstractMonitoringSubFunction |
buildSubFunction() |
void |
listingContainersWhenConnectionsWereEstablished()
Test the method 'execute()' against argument management, where:
the option listing containers is set,
some connections were already established by the transporter.
|
void |
listingContainersWhenNoConnectionWasEstablished()
Test the method 'execute()' against argument management, where:
the option listing containers is set,
any connection was already established 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 connections was already established by the transporter.
|
void |
queryingContainersByNameWithUnrecognizedArg()
Test the method 'execute()' against argument management, where:
the option querying container is set to get index name,
another unregonized option is provided.
|
void |
queryingContainersToGetCurrentActiveConnectionsForAllContainers()
Test the method 'execute()' against argument management, where:
the option querying container is set to get the current number of active connections for all remote
containers.
|
void |
queryingContainersToGetCurrentActiveConnectionsForAllContainersWithAnotherUnrecognizedArg()
Test the method 'execute()' against argument management, where:
the option querying containers is set to get current number of active connections for all remote containers.
|
void |
queryingContainersToGetCurrentActiveConnectionsForOneContainer()
Test the method 'execute()' against argument management, where:
the option querying container is set to get current number of active connections for one remote container,
some connection were already established to the remote container.
|
void |
queryingContainersToGetCurrentActiveConnectionsForOneUnknownContainer()
Test the method 'execute()' against argument management, where:
the option querying container is set to get current number of active connections for one remote container,
any connection was already established to the remote container.
|
void |
queryingContainersToGetCurrentIdleConnectionsForAllContainers()
Test the method 'execute()' against argument management, where:
the option querying container is set to get the current number of idle connections for all remote containers.
|
void |
queryingContainersToGetCurrentIdleConnectionsForAllContainersWithAnotherUnrecognizedArg()
Test the method 'execute()' against argument management, where:
the option querying containers is set to get current number of idle connections for all remote containers.
|
void |
queryingContainersToGetCurrentIdleConnectionsForOneContainer()
Test the method 'execute()' against argument management, where:
the option querying container is set to get current number of idle connections for one remote container,
some connection were already established to the remote container.
|
void |
queryingContainersToGetCurrentIdleConnectionsForOneUnknownContainer()
Test the method 'execute()' against argument management, where:
the option querying container is set to get current number of idle connections for one remote container,
any connection was already established to the remote container.
|
void |
queryingContainersToGetEstablishedConnectionsForAllContainers()
Test the method 'execute()' against argument management, where:
the option querying container is set to get the number of established connections for all remote containers.
|
void |
queryingContainersToGetEstablishedConnectionsForAllContainersWithAnotherUnrecognizedArg()
Test the method 'execute()' against argument management, where:
the option querying containers is set to get number of established connections for all remote containers.
|
void |
queryingContainersToGetEstablishedConnectionsForOneContainer()
Test the method 'execute()' against argument management, where:
the option querying container is set to get number of established connections for one remote container,
some connection were already established to the remote container.
|
void |
queryingContainersToGetEstablishedConnectionsForOneUnknownContainer()
Test the method 'execute()' against argument management, where:
the option querying container is set to get number of established connections for one remote container,
any connection was already established to the remote container.
|
void |
queryingContainersToGetMaxActiveConnectionsForAllContainers()
Test the method 'execute()' against argument management, where:
the option querying container is set to get the max number of active connections for all remote containers.
|
void |
queryingContainersToGetMaxActiveConnectionsForAllContainersWithAnotherUnrecognizedArg()
Test the method 'execute()' against argument management, where:
the option querying containers is set to get max number of active connections for all remote containers.
|
void |
queryingContainersToGetMaxActiveConnectionsForOneContainer()
Test the method 'execute()' against argument management, where:
the option querying container is set to get max number of active connections for one remote container,
some connection were already established to the remote container.
|
void |
queryingContainersToGetMaxActiveConnectionsForOneUnknownContainer()
Test the method 'execute()' against argument management, where:
the option querying container is set to get max number of active connections for one remote container,
any connection was already established to the remote container.
|
void |
queryingContainersToGetMaxIdleConnectionsForAllContainers()
Test the method 'execute()' against argument management, where:
the option querying container is set to get the max number of idle connections for all remote containers.
|
void |
queryingContainersToGetMaxIdleConnectionsForAllContainersWithAnotherUnrecognizedArg()
Test the method 'execute()' against argument management, where:
the option querying containers is set to get max number of idle connections for all remote containers.
|
void |
queryingContainersToGetMaxIdleConnectionsForOneContainer()
Test the method 'execute()' against argument management, where:
the option querying container is set to get max number of idle connections for one remote container,
some connection were already established to the remote container.
|
void |
queryingContainersToGetMaxIdleConnectionsForOneUnknownContainer()
Test the method 'execute()' against argument management, where:
the option querying container is set to get max number of idle connections for one remote container,
any connection was already established 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 unregonized 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 listingContainersWhenNoConnectionWasEstablished() 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 listingContainersWhenConnectionsWereEstablished() 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 queryingContainersToGetMaxActiveConnectionsForAllContainers() 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 queryingContainersToGetCurrentActiveConnectionsForAllContainers() 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 queryingContainersToGetMaxIdleConnectionsForAllContainers() 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 queryingContainersToGetCurrentIdleConnectionsForAllContainers() 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 queryingContainersToGetEstablishedConnectionsForAllContainers() 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 queryingContainersToGetMaxActiveConnectionsForAllContainersWithAnotherUnrecognizedArg() 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 queryingContainersToGetCurrentActiveConnectionsForAllContainersWithAnotherUnrecognizedArg() 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 queryingContainersToGetMaxIdleConnectionsForAllContainersWithAnotherUnrecognizedArg() 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 queryingContainersToGetCurrentIdleConnectionsForAllContainersWithAnotherUnrecognizedArg() 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 queryingContainersToGetEstablishedConnectionsForAllContainersWithAnotherUnrecognizedArg() 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 queryingContainersToGetMaxActiveConnectionsForOneContainer() 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 queryingContainersToGetCurrentActiveConnectionsForOneContainer() 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 queryingContainersToGetMaxIdleConnectionsForOneContainer() 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 queryingContainersToGetCurrentIdleConnectionsForOneContainer() 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 queryingContainersToGetEstablishedConnectionsForOneContainer() 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 queryingContainersToGetMaxActiveConnectionsForOneUnknownContainer() 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 queryingContainersToGetCurrentActiveConnectionsForOneUnknownContainer() 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 queryingContainersToGetMaxIdleConnectionsForOneUnknownContainer() 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 queryingContainersToGetCurrentIdleConnectionsForOneUnknownContainer() 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 queryingContainersToGetEstablishedConnectionsForOneUnknownContainer() 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.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.MonitoringSubFunctionException
IOException
Copyright © 2005-2018 Linagora. All Rights Reserved.