public void TestModifyResolution()
{
try
{
// increase and test
long resolution = 20 * TimeLimitingCollector.TimerThread.DEFAULT_RESOLUTION; //400
counterThread.Resolution = (resolution);
assertEquals(resolution, counterThread.Resolution);
DoTestTimeout(false, true);
// decrease much and test
resolution = 5;
counterThread.Resolution = (resolution);
assertEquals(resolution, counterThread.Resolution);
DoTestTimeout(false, true);
// return to default and test
resolution = TimeLimitingCollector.TimerThread.DEFAULT_RESOLUTION;
counterThread.Resolution = (resolution);
assertEquals(resolution, counterThread.Resolution);
DoTestTimeout(false, true);
}
finally
{
counterThread.Resolution = (TimeLimitingCollector.TimerThread.DEFAULT_RESOLUTION);
}
}