Package ptolemy.kernel.util.test
The ptolemy.kernel.util.test package.
- Since:
- Ptolemy II 8.1
-
Class Summary Class Description AccessAction AccessThread InvalidStringAttribute An attribute used for testing that is never valid.PtestWorkspace This object implements a ptolemy thread that obtains read permission to a workspace three times sequentially, then obtains write permission.StreamValueListener A value listener that describes value changes on the standard output when the value of an object implementing Settable changes.TestDebugEvent Class used to test DebugEventTestInstantiableAttribute TestInstantiableNamedObj TestNullNamedObj TestNullNamedObj is like NamedObj, except that null names are permissible.TestPtolemyThread This class is used to test the protected _debug() method in kernel.util.PtolemyThread.TestWorkspace This object implements a thread that obtains read permission to a workspace three times sequentially, then obtains write permission.TestWorkspace2 This object implements a thread that obtains read permission to a workspace three times sequentially, then calls workspace.wait(obj) on an object and exits.TestWorkspace3 Test the following scenario: thread T1 gets read access; thread T2 gets read access; T1 waits for write access; T2 releases read access; T1 wakes up and gets write access.TestWorkspace4 Test the following scenario: thread T1 gets write access; T2 waits for read access and is interrupted, then waits for read access again; T1 releases write access; T2 gets/releases read access; another thread T3 gets write access; T2 handles failure (being interrupted) in getting read access.TestWorkspace5 Test the following scenario: thread T1 gets read access; T2 waits for write access and is interrupted, then waits for write access again; T1 releases read access; T2 gets/releases write access; another thread T3 gets read access; T2 handles failure (being interrupted) in getting write access.TestWorkspace6 Test the following scenario: thread T1 gets read access twice, then waits on a lock object (and in doing so, releases the read access); T2 gets/releases write access; T1 is interrupted, and reacquires read access.TestWorkspaceBase A base class for creating tests on the workspace synchronization features.