public class ConcurrentGaugeFunctionalTest
extends java.lang.Object
| Constructor and Description |
|---|
ConcurrentGaugeFunctionalTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testConcurrentInvocations()
Over time, run multiple invocations on the bean (so that at one point, all are running at the same time).
|
void |
testMinMax()
To test the 'min' and 'max' values we have to do this: - run invocation1 and keep it running - wait until the
next minute starts - run invocation2 and stop it right away - wait until the next minute starts - stop
invocation1 - after this, 'min' should be 1 and 'max' should be 2
|
public void testMinMax()
throws java.util.concurrent.TimeoutException,
java.lang.InterruptedException
java.util.concurrent.TimeoutExceptionjava.lang.InterruptedExceptionpublic void testConcurrentInvocations()
throws java.lang.InterruptedException,
java.util.concurrent.TimeoutException
java.lang.InterruptedExceptionjava.util.concurrent.TimeoutException