Class WorkerThreadTest
- java.lang.Object
-
- nl.tudelft.simulation.language.concurrent.WorkerThreadTest
-
public class WorkerThreadTest extends Object
WorkerThreadTest.java.Copyright (c) 2019-2023 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 Classes Modifier and Type Class Description (package private) classWorkerThreadTest.ExceptionJobThe worker job that throws an exception.(package private) classWorkerThreadTest.JobThe worker job.
-
Field Summary
Fields Modifier and Type Field Description protected intvaluetest value that will be incremented by a worker thread.(package private) WorkerThreadwtthread.
-
Constructor Summary
Constructors Constructor Description WorkerThreadTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestWorkerThread()Test the WorkerThread.voidtestWorkerThreadException()Test the WorkerThread.
-
-
-
Field Detail
-
value
protected int value
test value that will be incremented by a worker thread.
-
wt
WorkerThread wt
thread.
-
-