Package org.spockframework.runtime

Examples of org.spockframework.runtime.WrongExceptionThrownError


  public void intercept(IMethodInvocation invocation) throws Throwable {
    try {
      invocation.proceed();
    } catch (Throwable t) {
      if (failsWith.value().isInstance(t)) return;
      throw new WrongExceptionThrownError(failsWith.value(), t);
    }
   
    throw new WrongExceptionThrownError(failsWith.value(), null);
  }
View Full Code Here

TOP

Related Classes of org.spockframework.runtime.WrongExceptionThrownError

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.