Parent Directory | Revision Log | Patch
revision 3211 by torben, Fri Mar 20 08:58:46 2015 UTC | revision 3212 by torben, Thu Dec 28 09:34:47 2017 UTC | |
---|---|---|
# | Line 21 public class TestCircuitBreaker { | Line 21 public class TestCircuitBreaker { |
21 | public static final int THRESHOLD = 2; | public static final int THRESHOLD = 2; |
22 | ||
23 | ||
24 | CircuitBreaker cb; | CircuitBreaker<String> cb; |
25 | ||
26 | @Before public void setup() { | @Before public void setup() { |
27 | cb = new CircuitBreaker("test", new StaticConfig(THRESHOLD, DELAY) ); | cb = new CircuitBreaker<>("test", new StaticConfig(THRESHOLD, DELAY) ); |
28 | } | } |
29 | ||
30 | @Test public void defaultState() { | @Test public void defaultState() { |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |