A B C D E F G I M P R S T U W

A

addSetUpAndTearDown(MultithreadedTest, TestCase) - Static method in class edu.umd.cs.mtc.TestFramework
Update a given test to call "setUp" and "tearDown" before and after running the test respectively.
assertTick(int) - Method in class edu.umd.cs.mtc.MultithreadedTestCase
Assert that the clock is in tick tick
awaitOn(Condition) - Static method in class edu.umd.cs.mtc.MultithreadedTestCase
This method is a replacement for Condition.await().

B

buildTestSuite(Class<?>) - Static method in class edu.umd.cs.mtc.TestFramework
Scan through a given class c to find any inner classes that implement Test.
buildTestSuite(Class<?>, String) - Static method in class edu.umd.cs.mtc.TestFramework
Scan through a given class c to find any inner classes that implement Test.

C

CLOCKPERIOD_KEY - Static variable in class edu.umd.cs.mtc.TestFramework
Command line key for indicating the regularity (in milliseconds) with which the clock thread regulates the thread methods.
countTestCases() - Method in class edu.umd.cs.mtc.MultithreadedTest
 

D

DEFAULT_CLOCKPERIOD - Static variable in class edu.umd.cs.mtc.TestFramework
The default clock period in milliseconds
DEFAULT_RUNLIMIT - Static variable in class edu.umd.cs.mtc.TestFramework
The default run limit in seconds

E

edu.umd.cs.mtc - package edu.umd.cs.mtc
MultithreadedTC: This package provides a unit testing framework for concurrent applications.

F

finish() - Method in class edu.umd.cs.mtc.MultithreadedTestCase
This method is invoked in a test after after all test threads have finished.
freezeClock() - Method in class edu.umd.cs.mtc.MultithreadedTestCase
When the clock is frozen, it will not advance even when all threads are blocked.

G

getThread(int) - Method in class edu.umd.cs.mtc.MultithreadedTestCase
Get a thread corresponding to the method whose name is formed using the prefix "thread" followed by an integer (represented by index.
getThreadByName(String) - Method in class edu.umd.cs.mtc.MultithreadedTestCase
Get a thread given the method name that it corresponds to.
getTick() - Method in class edu.umd.cs.mtc.MultithreadedTestCase
Gets the current value of the thread metronome.
getTrace() - Method in class edu.umd.cs.mtc.MultithreadedTestCase
 

I

initialize() - Method in class edu.umd.cs.mtc.MultithreadedTestCase
This method is invoked in a test run before any test threads have started.
isClockFrozen() - Method in class edu.umd.cs.mtc.MultithreadedTestCase
Check if the clock has been frozen by any threads.

M

mayYield() - Method in class edu.umd.cs.mtc.MultithreadedTestCase
Calling this method from one of the test threads may cause the thread to yield.
mayYield(double) - Method in class edu.umd.cs.mtc.MultithreadedTestCase
Calling this method from one of the test threads may cause the thread to yield.
MultithreadedTest - Class in edu.umd.cs.mtc
Extends MultithreadedTestCase by implementing Test so that tests can be added to a TestSuite.
MultithreadedTest() - Constructor for class edu.umd.cs.mtc.MultithreadedTest
 
MultithreadedTestCase - Class in edu.umd.cs.mtc
This is the base class for each test in the MultithreadedTC framework.
MultithreadedTestCase() - Constructor for class edu.umd.cs.mtc.MultithreadedTestCase
 

P

putThread(String, Thread) - Method in class edu.umd.cs.mtc.MultithreadedTestCase
Associates a thread with given method name.

R

run(TestResult) - Method in class edu.umd.cs.mtc.MultithreadedTest
 
runBare() - Method in class edu.umd.cs.mtc.MultithreadedTest
Runs the bare test sequence, including setUp and tearDown if available.
runInstrumentedManyTimes(MultithreadedTestCase, int, int[]) - Static method in class edu.umd.cs.mtc.TestFramework
Run multithreaded test case multiple times using the default or global settings for clock period and run limit.
RUNLIMIT_KEY - Static variable in class edu.umd.cs.mtc.TestFramework
Command line key for indicating the time limit (in seconds) for runnable threads.
runManyTimes(MultithreadedTestCase, int) - Static method in class edu.umd.cs.mtc.TestFramework
Run multithreaded test case multiple times using the default or global settings for clock period and run limit.
runManyTimes(MultithreadedTestCase, int, Integer, Integer) - Static method in class edu.umd.cs.mtc.TestFramework
Run multithreaded test case multiple times.
runOnce(MultithreadedTestCase) - Static method in class edu.umd.cs.mtc.TestFramework
Run a multithreaded test case once, using the default or global settings for clock period and run limit
runOnce(MultithreadedTestCase, Integer, Integer) - Static method in class edu.umd.cs.mtc.TestFramework
Run multithreaded test case once.
runTest() - Method in class edu.umd.cs.mtc.MultithreadedTest
This is the method that runs this test.

S

setGlobalClockPeriod(Integer) - Static method in class edu.umd.cs.mtc.TestFramework
Change/set the system property for the clock period
setGlobalRunLimit(Integer) - Static method in class edu.umd.cs.mtc.TestFramework
Change/set the system property for the run limit
setTrace(boolean) - Method in class edu.umd.cs.mtc.MultithreadedTestCase
 
skipNextWait() - Static method in class edu.umd.cs.mtc.MultithreadedTestCase
When this method is called from a thread, the next call to MultithreadedTestCase.waitOn(Object) or MultithreadedTestCase.awaitOn(Condition) will return immediately without blocking.

T

TestFramework - Class in edu.umd.cs.mtc
This class provides static methods to perform a MultithreadedTestCase.
TestFramework() - Constructor for class edu.umd.cs.mtc.TestFramework
 

U

unfreezeClock() - Method in class edu.umd.cs.mtc.MultithreadedTestCase
Unfreeze a clock that has been frozen by MultithreadedTestCase.freezeClock().

W

waitForTick(int) - Method in class edu.umd.cs.mtc.MultithreadedTestCase
Force this thread to block until the thread metronome reaches the specified value, at which point the thread is unblocked.
waitForTick(Enum) - Method in class edu.umd.cs.mtc.MultithreadedTestCase
An Enum-based version of waitForTick.
waitOn(Object) - Static method in class edu.umd.cs.mtc.MultithreadedTestCase
This method is a replacement for Object.wait().

A B C D E F G I M P R S T U W