| edu.rice.cs.drjava.model.MultiThreadedTestCase edu.rice.cs.util.LogTest
Method Summary | |
public void | testConcurrentWrites() Attempts to test Log's behavior when called concurrently from several sources. | public void | testExceptionPrinting() | public void | testLog() Adds a couple of generic messages to a log, and then tests to make sure they are all correct, in the correct order,
and their timestamps are within the past few seconds. |
DATE_END | final static int DATE_END(Code) | | |
SHORT_TIME | final static int SHORT_TIME(Code) | | |
testConcurrentWrites | public void testConcurrentWrites() throws IOException, InterruptedException(Code) | | Attempts to test Log's behavior when called concurrently from several sources. Spawns NUM_THREADS LogTestThreads
(see above)that wait a random number between 0 and DELAY milliseconds and then log a message. The function tests
to make sure that the messages and dates are all intact (if the Log was not handling concurrent requests properly,
the entries in the log may be corrupted).
|
testExceptionPrinting | public void testExceptionPrinting() throws IOException(Code) | | Tests the Exception printing methods in the Log file by throwing two exceptions and using the two types of log
methods (one with the Throwable itself and the other with the the StackTraceElement[])
|
testLog | public void testLog() throws IOException(Code) | | Adds a couple of generic messages to a log, and then tests to make sure they are all correct, in the correct order,
and their timestamps are within the past few seconds.
|
Fields inherited from edu.rice.cs.drjava.model.MultiThreadedTestCase | protected static volatile boolean _testFailed(Code)(Java Doc)
|
|
|