junit.extensions
Class ActiveTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.extensions.TestDecorator
              |
              +--junit.extensions.ActiveTest
All Implemented Interfaces:
junit.framework.Test

public class ActiveTest
extends TestDecorator

A Decorator that runs a test in a separate thread.

Author:
Siegfried GOESCHL

Fields inherited from class junit.extensions.TestDecorator
fTest
 
Constructor Summary
ActiveTest(junit.framework.Test test)
          Creates active test with default multiplier (1).
ActiveTest(junit.framework.Test test, int multiplier)
          Creates active test with default multiplier (1).
 
Method Summary
 void run(junit.framework.TestResult testResult)
           
 java.lang.String toString()
           
 
Methods inherited from class junit.extensions.TestDecorator
basicRun, countTestCases, getTest
 
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

ActiveTest

public ActiveTest(junit.framework.Test test)
Creates active test with default multiplier (1).
Parameters:
test - Target test.

ActiveTest

public ActiveTest(junit.framework.Test test,
                  int multiplier)
Creates active test with default multiplier (1).
Parameters:
test - Target test.
multiplier - Stress level.
Method Detail

run

public void run(junit.framework.TestResult testResult)
Overrides:
run in class TestDecorator

toString

public java.lang.String toString()
Overrides:
toString in class TestDecorator


Copyright © 2001-2002 IT20one GmbH. All Rights Reserved.