Parent Directory | Revision Log | Patch
revision 454 by torben, Tue Oct 20 11:08:53 2009 UTC | revision 455 by torben, Tue Oct 20 11:10:30 2009 UTC | |
---|---|---|
# | Line 85 public class TestCircuitBreaker { | Line 85 public class TestCircuitBreaker { |
85 | assertTrue( cb.isOpen() ); | assertTrue( cb.isOpen() ); |
86 | } | } |
87 | ||
88 | @Test public void forcedTrip() { | |
89 | assertTrue( cb.isClosed() ); | |
90 | cb.tripBreaker(); | |
91 | assertTrue( cb.isOpen() ); | |
92 | } | |
93 | ||
94 | @Test public void forcedResetTest() throws Exception { | @Test public void forcedResetTest() throws Exception { |
95 | try{ | try{ |
96 | cb.invoke( new FailingInvocation() ); | cb.invoke( new FailingInvocation() ); |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |