Class WorkerThreadTest
java.lang.Object
nl.tudelft.simulation.language.concurrent.WorkerThreadTest
WorkerThreadTest.java.
Copyright (c) 2019-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
- Author:
- Alexander Verbraeck
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classThe worker job that throws an exception.(package private) classThe worker job. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest the WorkerThread.voidTest the WorkerThread.
-
Field Details
-
value
protected int valuetest value that will be incremented by a worker thread. -
wt
nl.tudelft.simulation.language.concurrent.WorkerThread wtthread.
-
-
Constructor Details
-
WorkerThreadTest
public WorkerThreadTest()
-
-
Method Details
-
testWorkerThread
@Test public void testWorkerThread()Test the WorkerThread. -
testWorkerThreadException
@Test public void testWorkerThreadException()Test the WorkerThread.
-