Package spock.lang

Examples of spock.lang.AutoCleanup


    } catch (Throwable t) {
      exceptions.add(t);
    }

    for (FieldInfo field : fields) {
      AutoCleanup annotation = field.getAnnotation(AutoCleanup.class);

      try {
        Object value = field.readValue(invocation.getInstance());
        if (value == null) continue;

        GroovyRuntimeUtil.invokeMethod(value, annotation.value());
      } catch (Throwable t) {
        if (!annotation.quiet()) exceptions.add(t);
      }
    }
   
    ExtensionUtil.throwAll(exceptions);
  }
View Full Code Here

TOP

Related Classes of spock.lang.AutoCleanup

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.