/[projects]/CircuitBreaker/test/dk/thoerup/circuitbreaker/TestAccountingCircuitBreaker.java
ViewVC logotype

Diff of /CircuitBreaker/test/dk/thoerup/circuitbreaker/TestAccountingCircuitBreaker.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1314 by torben, Thu Oct 22 06:01:35 2009 UTC revision 1315 by torben, Tue Apr 19 17:13:40 2011 UTC
# Line 1  Line 1 
1  package dk.thoerup.circuitbreaker;  package dk.thoerup.circuitbreaker;
2    
3    import static org.junit.Assert.assertTrue;
4    
5  import java.io.IOException;  import java.io.IOException;
6    
7  import org.junit.*;  import org.junit.Before;
8  import static org.junit.Assert.*;  import org.junit.Test;
9    
10  import dk.thoerup.circuitbreaker.AccountingCircuitBreaker;  import dk.thoerup.circuitbreaker.config.StaticConfig;
11    
12  public class TestAccountingCircuitBreaker {  public class TestAccountingCircuitBreaker {
13          public static final int DELAY = 50;          public static final int DELAY = 50;
# Line 15  public class TestAccountingCircuitBreake Line 17  public class TestAccountingCircuitBreake
17          AccountingCircuitBreaker acb;          AccountingCircuitBreaker acb;
18                    
19          @Before public void setup() {          @Before public void setup() {
20                  acb = new AccountingCircuitBreaker("test", THRESHOLD, DELAY);                  acb = new AccountingCircuitBreaker("test", new StaticConfig(THRESHOLD, DELAY) );
21          }          }
22                    
23          @Test public void initialValues() {          @Test public void initialValues() {

Legend:
Removed from v.1314  
changed lines
  Added in v.1315

  ViewVC Help
Powered by ViewVC 1.1.20