src/main/java/com/greghaskins/spectrum/internal/blocks/NotifyingBlock.java
/**
   * Add the reporting capability to a block. The block runs as normal, but
   * any exceptions are ALSO reported on the way to outer catch blocks.
   * @param description which test called the block
   * @param reporting object to inform of failure
   * @param block the block to execute
   * @return a block which has notification built in
   */
Add the reporting capability to a block. The block runs as normal, but
any exceptions are ALSO reported on the way to outer catch blocks.
@param description which test called the block
@param reporting object to inform of failure
@param block the block to execute
@return a block which has notification built in
Add the reporting capability to a block . The block runs as normal but any exceptions are ALSO reported on the way to outer catch blocks . @param description which test called the block @param reporting object to inform of failure @param block the block to execute @return a block which has notification built in
static Block wrapWithReporting(final Description description,
      final RunReporting<Description, Failure> reporting,
      final Block block) {
    return () -> executeAndReport(description, reporting, block);
  }
static Block wrapWithReporting ( final Description description , final RunReporting < Description , Failure > reporting , final Block block ) { return ( ) -> executeAndReport ( description , reporting , block ) ; }
Add the reporting capability to a block.
Add the reporting capability to a block .