Package org.hibernate.search.testsupport.setup

Examples of org.hibernate.search.testsupport.setup.CountingErrorHandler


      targetMethod = "commit",
      action = "throw new IOException(\"File not found!\")",
      name = "commitError")
  public void testErrorHandling() throws Exception {
    writeData( sfAsyncExclusiveIndex, 2 );
    final CountingErrorHandler errorHandler = (CountingErrorHandler) sfAsyncExclusiveIndex.getSearchFactory().getErrorHandler();
    assertConditionMet( new Condition() {
      @Override
      public boolean evaluate() {
        return errorHandler.getCountFor( IOException.class ) >= 2;
      }
    } );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.search.testsupport.setup.CountingErrorHandler

Copyright © 2018 www.massapicom. 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.