Examples of RecurringFailureLimit


Examples of no.kommune.bergen.soa.svarut.util.RecurringFailureLimit

public class RecurringFailureLimitTest {

  @Test
  public void reportPolicyViolations() {
    InvocationRecord ir = new InvocationRecord( "testA" );
    ir.addPolicy( new RecurringFailureLimit( 2 ) );
    assertEquals( "", ir.reportPolicyViolations() );
    ir.recordSuccess();
    ir.recordException( "Shit happens!" );
    ir.recordException( "Shit happens!" );
    assertEquals( "", ir.reportPolicyViolations() );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.