src/main/java/com/greghaskins/spectrum/internal/junit/RuleContext.java
/**
   * Wrap a {@link Block} as a {@link Statement} for JUnit purposes.
   * @param toExecute block that will be running inside the statement
   * @return statement encapsulating the work
   */
Wrap a  Block as a  Statement for JUnit purposes.
@param toExecute block that will be running inside the statement
@return statement encapsulating the work
Wrap a Block as a Statement for JUnit purposes . @param toExecute block that will be running inside the statement @return statement encapsulating the work
public static Statement statementOf(final Block toExecute) {
    return new Statement() {
      @Override
      public void evaluate() throws Throwable {
        toExecute.run();
      }
    };
  }
public static Statement statementOf ( final Block toExecute ) { return new Statement ( ) { @ Override public void evaluate ( ) throws Throwable { toExecute . run ( ) ; } } ; }
Wrap a {@link Block} as a {@link Statement} for JUnit purposes.
Wrap a { @link Block } as a { @link Statement } for JUnit purposes .