private static boolean isCurrentlyPlaying() {
return descriptionRecorder != null;
}
public static DescriptionRecorder recordCode(SourceGenerator sourceGenerator, String suiteName, String description) {
descriptionRecorder = new DescriptionRecorder(sourceGenerator, suiteName, description);
try {
classBeingSpecified.newInstance();
} catch (InstantiationException | IllegalAccessException e) {
String message = "Unable to create specification from: " + suiteName;
throw new SpecificationDeclarationException(message, e);