public abstract class AbstractTestCase extends AbstractMonitoringSubFunctionTest
expectedEx, shell, subFunction
Constructor and Description |
---|
AbstractTestCase() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertCactiResponseTimesOutputOfQueryWithArg(String output,
Map<String,Long> expectedResults,
String queriedOperation) |
protected void |
assertCactiServiceProviderInvocationResponseTimesOutput(String output,
Map<org.ow2.petals.jmx.api.api.monitoring.component.framework.ServiceProviderInvocationKey,Long[]> dataSet,
Map<String,Long> expectedResults) |
protected void |
assertCactiServiceProviderInvocationsCountOutput(String output,
Map<org.ow2.petals.jmx.api.api.monitoring.component.framework.ServiceProviderInvocationKey,Long> dataSet,
Map<String,Long> expectedResults) |
void |
clearDataSets()
Clear all datasets used during unit tests
|
buildSubFunction, setUpFunction
public void clearDataSets() throws Exception
Exception
protected void assertCactiServiceProviderInvocationResponseTimesOutput(String output, Map<org.ow2.petals.jmx.api.api.monitoring.component.framework.ServiceProviderInvocationKey,Long[]> dataSet, Map<String,Long> expectedResults) throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, org.ow2.petals.jmx.api.api.exception.ConnectionErrorException, IOException
output
- The output stream as String
dataSet
- Unit test data setexpectedResults
- expected resultsorg.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
org.ow2.petals.jmx.api.api.exception.ConnectionErrorException
IOException
protected void assertCactiResponseTimesOutputOfQueryWithArg(String output, Map<String,Long> expectedResults, String queriedOperation) throws NumberFormatException, IOException
NumberFormatException
IOException
protected void assertCactiServiceProviderInvocationsCountOutput(String output, Map<org.ow2.petals.jmx.api.api.monitoring.component.framework.ServiceProviderInvocationKey,Long> dataSet, Map<String,Long> expectedResults) throws org.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException, org.ow2.petals.jmx.api.api.exception.ConnectionErrorException, IOException
output
- The output stream as String
dataSet
- Unit test data setexpectedResults
- expected resultsorg.ow2.petals.cli.extension.command.monitoring.mo.api.exception.MonitoringSubFunctionException
org.ow2.petals.jmx.api.api.exception.ConnectionErrorException
IOException
Copyright © 2005-2018 Linagora. All Rights Reserved.