org.perf4j.helpers
Class GroupingStatisticsIteratorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.perf4j.TimingTestCase
              extended by org.perf4j.helpers.GroupingStatisticsIteratorTest
All Implemented Interfaces:
junit.framework.Test

public class GroupingStatisticsIteratorTest
extends TimingTestCase

Tests the GroupingStatisticsIterator.


Field Summary
 
Fields inherited from class org.perf4j.TimingTestCase
testLog, testStopWatches
 
Constructor Summary
GroupingStatisticsIteratorTest()
           
 
Method Summary
 void testEmptyIterator()
           
 void testNormalUsage()
           
 void testRemove()
           
 void testSingleStopWatch()
           
 void testStopWatchIteratorContainsNullBeginningTimeslice()
          Test StopWatch in the middle of the timeslice.
 void testStopWatchIteratorContainsNullNotBeginningTimeslice()
          Test null StopWatch that terminates the timeslice
 void testTwoStopWatchesDifferentTimeslices()
           
 
Methods inherited from class org.perf4j.TimingTestCase
setUp
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupingStatisticsIteratorTest

public GroupingStatisticsIteratorTest()
Method Detail

testEmptyIterator

public void testEmptyIterator()
                       throws Exception
Throws:
Exception

testSingleStopWatch

public void testSingleStopWatch()
                         throws Exception
Throws:
Exception

testTwoStopWatchesDifferentTimeslices

public void testTwoStopWatchesDifferentTimeslices()
                                           throws Exception
Throws:
Exception

testNormalUsage

public void testNormalUsage()
                     throws Exception
Throws:
Exception

testRemove

public void testRemove()
                throws Exception
Throws:
Exception

testStopWatchIteratorContainsNullBeginningTimeslice

public void testStopWatchIteratorContainsNullBeginningTimeslice()
Test StopWatch in the middle of the timeslice. See bug http://jira.codehaus.org/browse/PERFFORJ-29


testStopWatchIteratorContainsNullNotBeginningTimeslice

public void testStopWatchIteratorContainsNullNotBeginningTimeslice()
Test null StopWatch that terminates the timeslice



Copyright © 2008-2011 perf4j.org. All Rights Reserved.