Package net.jodah.concurrentunit
Class ConcurrentTestCase
java.lang.Object
net.jodah.concurrentunit.ConcurrentTestCase
Convenience support class, wrapping a
Waiter
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
await()
protected void
await
(long delay) protected void
await
(long delay, int expectedResumes) protected void
protected void
protected void
resume()
void
void
threadAssertEquals
(Object expected, Object actual) void
threadAssertFalse
(boolean b) void
threadAssertNotNull
(Object object) void
void
threadAssertTrue
(boolean b) void
void
threadFail
(String reason) void
threadFail
(Throwable reason)
-
Field Details
-
waiter
-
-
Constructor Details
-
ConcurrentTestCase
public ConcurrentTestCase()
-
-
Method Details
-
threadAssertEquals
- See Also:
-
threadAssertFalse
public void threadAssertFalse(boolean b) - See Also:
-
threadAssertNotNull
- See Also:
-
threadAssertNull
- See Also:
-
threadAssertTrue
public void threadAssertTrue(boolean b) - See Also:
-
threadFail
public void threadFail()- See Also:
-
threadFail
- See Also:
-
threadFail
- See Also:
-
rethrow
- See Also:
-
await
- Throws:
TimeoutException
InterruptedException
- See Also:
-
await
- Throws:
TimeoutException
InterruptedException
- See Also:
-
await
- Throws:
TimeoutException
InterruptedException
- See Also:
-
await
- Throws:
TimeoutException
InterruptedException
- See Also:
-
await
protected void await(long delay, TimeUnit timeUnit, int expectedResumes) throws TimeoutException, InterruptedException - Throws:
TimeoutException
InterruptedException
- See Also:
-
resume
protected void resume()- See Also:
-