com.commsen.stopwatch
Class AbstractBaseStopwatchTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.commsen.stopwatch.AbstractBaseStopwatchTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
DefaultStopwatchEngineTest, MemoryStopwatchEngineTest

public abstract class AbstractBaseStopwatchTest
extends junit.framework.TestCase

Unit test for Stopwatch.


Field Summary
protected  java.util.Random random
           
protected  com.commsen.stopwatch.Report report
           
protected  java.lang.String testsGroup
           
 
Constructor Summary
AbstractBaseStopwatchTest()
           
 
Method Summary
abstract  org.apache.log4j.Logger getLogger()
           
protected  void setUp()
           
protected  void tearDown()
           
 void testBadInitialization()
          test initialisation
 void testBadUsage()
          test bad usage
 void testCount()
          Count test
 void testGroupAndLabel()
          test groups and labels
 void testLoad()
           
 void testMultithreaded()
           
 void testNaturalOrdering()
           
 void testRecursion()
          Recursion test
 void testSkip()
          Skip test
 void testTiming()
          Timings test
 void testZeroTiming()
          Measure zero length operation
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Field Detail

testsGroup

protected final java.lang.String testsGroup
See Also:
Constant Field Values

report

protected com.commsen.stopwatch.Report report

random

protected java.util.Random random
Constructor Detail

AbstractBaseStopwatchTest

public AbstractBaseStopwatchTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception
See Also:
TestCase.setUp()

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception
See Also:
TestCase.tearDown()

testBadInitialization

public void testBadInitialization()
test initialisation


testGroupAndLabel

public void testGroupAndLabel()
test groups and labels


testCount

public void testCount()
Count test


testBadUsage

public void testBadUsage()
test bad usage


testZeroTiming

public void testZeroTiming()
Measure zero length operation


testTiming

public void testTiming()
Timings test


testSkip

public void testSkip()
Skip test


testRecursion

public void testRecursion()
Recursion test


testMultithreaded

public void testMultithreaded()

testLoad

public void testLoad()

testNaturalOrdering

public void testNaturalOrdering()

getLogger

public abstract org.apache.log4j.Logger getLogger()


Copyright © 2006-2008 Commsen International. All Rights Reserved.