private void buildFixtureMethods() {
    MethodInfo cleanupMethod = createMethod(Identifiers.CLEANUP_METHOD, MethodKind.CLEANUP);
    if (cleanupMethod != null) spec.addCleanupMethod(cleanupMethod);
    MethodInfo cleanupSpecMethod = createMethod(Identifiers.CLEANUP_SPEC_METHOD, MethodKind.CLEANUP_SPEC);
    if (cleanupSpecMethod != null) spec.addCleanupSpecMethod(cleanupSpecMethod);

    MethodInfo setupMethod = createMethod(Identifiers.SETUP_METHOD, MethodKind.SETUP);
    if (setupMethod != null) spec.addSetupMethod(setupMethod);
    MethodInfo setupSpecMethod = createMethod(Identifiers.SETUP_SPEC_METHOD, MethodKind.SETUP_SPEC);
    if (setupSpecMethod != null) spec.addSetupSpecMethod(setupSpecMethod);
  }
Builds a SpecInfo from a Class instance.

@author Peter Niederwieser
spock-core/src/main/java/org/spockframework/runtime/SpecInfoBuilder.java