J avolution v5.2 (J2SE 1.5+)

javolution
Class ContextTestSuite.SmallObjectAllocation

java.lang.Object
  extended by javolution.testing.TestCase
      extended by javolution.ContextTestSuite.SmallObjectAllocation
Enclosing class:
ContextTestSuite

public static class ContextTestSuite.SmallObjectAllocation
extends TestCase


Constructor Summary
ContextTestSuite.SmallObjectAllocation(int size, boolean useStack)
           
 
Method Summary
 void cleanup()
          Cleanup once test is complete (the default implementation does nothing).
 int count()
          The number of times the test case is exercised (default 1).
 void execute()
          Executes this test case (possibly multiple times in which case the TestCase.count() method should be overriden).
 java.lang.CharSequence getDescription()
          Returns the description of this test case or null if none.
 void prepare()
          Prepares the test case execution (the default implementation does nothing).
 void validate()
          Validates the test results (the default implementation does nothing).
 
Methods inherited from class javolution.testing.TestCase
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContextTestSuite.SmallObjectAllocation

public ContextTestSuite.SmallObjectAllocation(int size,
                                              boolean useStack)
Method Detail

getDescription

public java.lang.CharSequence getDescription()
Description copied from class: TestCase
Returns the description of this test case or null if none.

Overrides:
getDescription in class TestCase
Returns:
the description or null

prepare

public void prepare()
Description copied from class: TestCase
Prepares the test case execution (the default implementation does nothing).

Overrides:
prepare in class TestCase

execute

public void execute()
Description copied from class: TestCase
Executes this test case (possibly multiple times in which case the TestCase.count() method should be overriden).

Specified by:
execute in class TestCase

count

public int count()
Description copied from class: TestCase
The number of times the test case is exercised (default 1).

Overrides:
count in class TestCase
Returns:
the number of test case occurences in TestCase.execute().

cleanup

public void cleanup()
Description copied from class: TestCase
Cleanup once test is complete (the default implementation does nothing).

Overrides:
cleanup in class TestCase

validate

public void validate()
Description copied from class: TestCase
Validates the test results (the default implementation does nothing).

Overrides:
validate in class TestCase

J avolution v5.2 (J2SE 1.5+)

Copyright © 2005 - 2007 Javolution.