src/main/java/com/greghaskins/spectrum/internal/configuration/ConfiguredBlock.java
/**
   * Surround a {@link Block} with the {@code with} statement to add preconditions and metadata to it.
   * E.g. <code>with(tags("foo"), () -&gt; {})</code>
   * @param blockConfiguration the precondition object - see the factory methods in
   *        {@link BlockConfiguration}
   * @param block the enclosed block
   * @return a PreconditionBlock to use
   */
Surround a  Block with the  with statement to add preconditions and metadata to it.
Surround a Block with the with statement to add preconditions and metadata to it .
public static ConfiguredBlock with(final BlockConfiguration blockConfiguration,
      final Block block) {
    BlockConfiguration existingBlockConfiguration = configurationFromBlock(block);
    BlockConfiguration mergedBlockConfiguration =
        BlockConfiguration.merge(existingBlockConfiguration, blockConfiguration);
    return new ConfiguredBlock(mergedBlockConfiguration, block);
  }
public static ConfiguredBlock with ( final BlockConfiguration blockConfiguration , final Block block ) { BlockConfiguration existingBlockConfiguration = configurationFromBlock ( block ) ; BlockConfiguration mergedBlockConfiguration = BlockConfiguration . merge ( existingBlockConfiguration , blockConfiguration ) ; return new ConfiguredBlock ( mergedBlockConfiguration , block ) ; }
Surround a {@link Block} with the {@code with} statement to add preconditions and metadata to it.
Surround a { @link Block } with the { @code with } statement to add preconditions and metadata to it .