src/main/java/com/greghaskins/spectrum/internal/hooks/AbstractSupplyingHook.java
/**
   * Template method for a hook which supplies.
   *
   * @param description description - unused here
   * @param reporting reporting - unused here
   * @param block       the inner block that will be run
   * @throws Throwable on error
   */
Template method for a hook which supplies.
@param description description - unused here
@param reporting reporting - unused here
@param block       the inner block that will be run
@throws Throwable on error
Template method for a hook which supplies . @param description description - unused here @param reporting reporting - unused here @param block the inner block that will be run @throws Throwable on error
@Override
  public void accept(final Description description, final RunReporting<Description, Failure> reporting,
      final Block block) throws Throwable {
    try {
      this.value.set(before());
      block.run();
    } finally {
      try {
        after();
      } finally {
        clear();
      }
    }
  }
@ Override public void accept ( final Description description , final RunReporting < Description , Failure > reporting , final Block block ) throws Throwable { try { this . value . set ( before ( ) ) ; block . run ( ) ; } finally { try { after ( ) ; } finally { clear ( ) ; } } }
Template method for a hook which supplies.
Template method for a hook which supplies .