src/main/java/com/greghaskins/spectrum/Spectrum.java
/**
   * Links the test class construction to JUnit rules implementation. This creates a block which
   * when executed will perform test definition against Spectrum and also hooks JUnit rule
   * implementation to the definition based on any "@Rule" annotations on the members - see {@link
   * Rules}
   *
   * @param testClass type of the test object
   * @return a block with JUnit rules activated
   */
Links the test class construction to JUnit rules implementation. This creates a block which
when executed will perform test definition against Spectrum and also hooks JUnit rule
implementation to the definition based on any "@Rule" annotations on the members - see {@link
Rules}

@param testClass type of the test object
@return a block with JUnit rules activated
Links the test class construction to JUnit rules implementation . This creates a block which when executed will perform test definition against Spectrum and also hooks JUnit rule implementation to the definition based on any " @Rule " annotations on the members - see { @link Rules } @param testClass type of the test object @return a block with JUnit rules activated
private static <T> com.greghaskins.spectrum.Block createTestClassDefinitionBlock(
      final Class<T> testClass) {
    ConstructorBlock<T> constructTestClass = new ConstructorBlock<>(testClass);
    return () -> {
      constructTestClass.run();
      Rules.applyRules(constructTestClass.get(), DeclarationState.instance()::addHook);
    };
  }
private static < T > com . greghaskins . spectrum . Block createTestClassDefinitionBlock ( final Class < T > testClass ) { ConstructorBlock < T > constructTestClass = new ConstructorBlock < > ( testClass ) ; return ( ) -> { constructTestClass . run ( ) ; Rules . applyRules ( constructTestClass . get ( ) , DeclarationState . instance ( ) :: addHook ) ; } ; }
Links the test class construction to JUnit rules implementation.
Links the test class construction to JUnit rules implementation .