<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
<testsuite name="Monitoring module" errors="0" tests="0" failures="0" time="0" timestamp="2014-04-09T16:48:32">
</testsuite>
<testsuite name="Monitoring module.Singleton Get" errors="0" tests="1" failures="0" time="0.013" timestamp="2014-04-09T16:48:30">
  <testcase classname="Monitoring module.Singleton Get" name="should always get the same instance" time="0.013"></testcase>
</testsuite>
<testsuite name="Monitoring module.Constructor" errors="0" tests="21" failures="0" time="1.046" timestamp="2014-04-09T16:48:30">
  <testcase classname="Monitoring module.Constructor" name="should throw error if one of the use cases have no zabbix key" time="0.026"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should throw error if operation is not supported" time="0.025"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should throw error if one of the use cases doesn`t have operation key" time="0.025"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should disable the module if monitoring key is missing from configuration" time="0.025"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should disable the module if adapter is null" time="0.025"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should disable the module if this is specified in the monitoring.conf" time="0.307"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should disable the module if metrics key are missing from the monitoring configuration" time="0.029"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should not disable the module if adapter, configuration and metrics for monitoring are in place" time="0.013"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should create a measurementMap from the configuration file" time="0.013"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should exclude from the measurementMap the disabled use cases" time="0.035"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should set the default send rate" time="0.013"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should set the default send rate and overwrite sendRate for different use cases" time="0.026"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should set the default send rate to 60 seconds if missing" time="0.026"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should not load plugins if the loadMeasurementPlugins key does not exist" time="0.012"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should not load a specific plugin if the plugin is disabled" time="0.026"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should not load plugins if the measurementPlugin key is disabled" time="0.025"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should not load plugins if the measurementPlugin key does not exist" time="0.269"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should register measurement plugins from the configuration" time="0.048"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should run the plugins at the preset interval of time" time="0.027"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should not load plugins if the use case is disabled" time="0.025"></testcase>
  <testcase classname="Monitoring module.Constructor" name="should run the plugins at the specified interval of time" time="0.026"></testcase>
</testsuite>
<testsuite name="Monitoring module.StartMeasurement" errors="0" tests="8" failures="0" time="0.4" timestamp="2014-04-09T16:48:31">
  <testcase classname="Monitoring module.StartMeasurement" name="should not run the method if the module is disabled" time="0.025"></testcase>
  <testcase classname="Monitoring module.StartMeasurement" name="should log an error if use case is not passed to the method" time="0.012"></testcase>
  <testcase classname="Monitoring module.StartMeasurement" name="should log an error if invalid or disabled use case is passed to the method" time="0.013"></testcase>
  <testcase classname="Monitoring module.StartMeasurement" name="should generate an id if no id is passed" time="0.013"></testcase>
  <testcase classname="Monitoring module.StartMeasurement" name="should always return the id even though it is passed" time="0.013"></testcase>
  <testcase classname="Monitoring module.StartMeasurement" name="should register measurements to the map if no id is passed, no id should be pushed if operation is count and also should increment the active requests" time="0.013"></testcase>
  <testcase classname="Monitoring module.StartMeasurement" name="should register measurements and id to map if operation is average, should set the currenttime for the pushed id and should increment the active requests" time="0.036"></testcase>
  <testcase classname="Monitoring module.StartMeasurement" name="should push another id to the metrics map of an use case if concurency, should set the activeRequeststo the number of concurent ids/users" time="0.275"></testcase>
</testsuite>
<testsuite name="Monitoring module.Stop Measurement" errors="0" tests="8" failures="0" time="0.177" timestamp="2014-04-09T16:48:31">
  <testcase classname="Monitoring module.Stop Measurement" name="should log an error if use case is not passed" time="0.034"></testcase>
  <testcase classname="Monitoring module.Stop Measurement" name="should log an error if use case is invalid" time="0.018"></testcase>
  <testcase classname="Monitoring module.Stop Measurement" name="should log a debug message if use case is disabled" time="0.027"></testcase>
  <testcase classname="Monitoring module.Stop Measurement" name="should log an error if it is called although no measurement was started" time="0.014"></testcase>
  <testcase classname="Monitoring module.Stop Measurement" name="should get the time of a request from start to end and added to total" time="0.028"></testcase>
  <testcase classname="Monitoring module.Stop Measurement" name="should increment the number of finished requests on end" time="0.014"></testcase>
  <testcase classname="Monitoring module.Stop Measurement" name="should flag the specified id from the map that it has finished the requests if average" time="0.028"></testcase>
  <testcase classname="Monitoring module.Stop Measurement" name="should reduce the number of active connections when measurement finishes" time="0.014"></testcase>
</testsuite>
<testsuite name="Monitoring module.Close" errors="0" tests="1" failures="0" time="0.015" timestamp="2014-04-09T16:48:31">
  <testcase classname="Monitoring module.Close" name="should compose all data and send it to the server not depending on interval" time="0.015"></testcase>
</testsuite>
<testsuite name="Monitoring module.Register Event" errors="0" tests="3" failures="0" time="0.042" timestamp="2014-04-09T16:48:31">
  <testcase classname="Monitoring module.Register Event" name="should register an event to the map" time="0.015"></testcase>
  <testcase classname="Monitoring module.Register Event" name="should increase the number of active connections if no value is sent" time="0.013"></testcase>
  <testcase classname="Monitoring module.Register Event" name="should add the value passed to the method of the registered event" time="0.014"></testcase>
</testsuite>
<testsuite name="Monitoring module.Sending data to adapter" errors="0" tests="8" failures="1" time="0.46" timestamp="2014-04-09T16:48:31">
  <testcase classname="Monitoring module.Sending data to adapter" name="should reset the values after a period of time" time="0.029"></testcase>
  <testcase classname="Monitoring module.Sending data to adapter" name="should keep the active requests until they are resolved" time="0.302"><failure>1: Expected 0 to be 1.</failure></testcase>
  <testcase classname="Monitoring module.Sending data to adapter" name="should not send data if there were no resolved requests" time="0.03"></testcase>
  <testcase classname="Monitoring module.Sending data to adapter" name="should reset the registered events" time="0.015"></testcase>
  <testcase classname="Monitoring module.Sending data to adapter" name="should not reset the activeRequests for count measurements" time="0.015"></testcase>
  <testcase classname="Monitoring module.Sending data to adapter" name="should not send data if nothing to send" time="0.025"></testcase>
  <testcase classname="Monitoring module.Sending data to adapter" name="should measure even though the send was unsuccessfull" time="0.016"></testcase>
  <testcase classname="Monitoring module.Sending data to adapter" name="should compose the sending object with the secondary key" time="0.028"></testcase>
</testsuite>
<testsuite name="Monitoring module.Register tlds" errors="0" tests="6" failures="0" time="0.252" timestamp="2014-04-09T16:48:32">
  <testcase classname="Monitoring module.Register tlds" name="should return the use case combined with the tld if the use case was created previously" time="0.028"></testcase>
  <testcase classname="Monitoring module.Register tlds" name="should create the new use case with the tld and return the use case name if it wasn`t created" time="0.027"></testcase>
  <testcase classname="Monitoring module.Register tlds" name="should return the normal use case name if no tld is passed" time="0.028"></testcase>
  <testcase classname="Monitoring module.Register tlds" name="should return the normal use case name with no tld if the use case does not exist at all" time="0.084"></testcase>
  <testcase classname="Monitoring module.Register tlds" name="should not do anything if the monitoring is disabled" time="0.044"></testcase>
  <testcase classname="Monitoring module.Register tlds" name="should not concatenate with the tld if the tld functionality is disabled" time="0.041"></testcase>
</testsuite>
</testsuites>