public class ConcurrentGaugeFunctionalTest extends 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
|
@InSequence(value=1) public void testMinMax() throws TimeoutException, InterruptedException
TimeoutException
InterruptedException
@InSequence(value=2) public void testConcurrentInvocations() throws InterruptedException, TimeoutException
InterruptedException
TimeoutException
Copyright © 2017 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.