public class Recording extends Object implements org.junit.jupiter.api.extension.AfterAllCallback
| Modifier | Constructor and Description |
|---|---|
protected |
Recording(TemplateReference templateReference,
List<String> testSourceCode,
TabSize tabSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAll(org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
void |
begin() |
void |
begin(String label) |
void |
end() |
void |
include(Class<?> clazz,
Includes... includeOptions) |
void |
output(String label,
String content) |
Recording |
replacementNotFoundFallback(BiFunction<String,Set<String>,String> fallback) |
void |
resource(Class<?> clazz,
String resourceName,
ResourceFilter... filters) |
Recording |
resource(String label,
Class<?> clazz,
String resourceName,
ResourceFilter... filters) |
protected static Consumer<Runnable> |
runWithTemplateConsumer(BiConsumer<String,String> consumer) |
Recording |
sourceCodeOf(String label,
Class<?> clazz,
Includes... includeOptions) |
Recording |
thisMethod(String label)
Deprecated.
|
protected static void |
writeResult(String templateName,
String renderedTemplate) |
protected Recording(TemplateReference templateReference, List<String> testSourceCode, TabSize tabSize)
public Recording sourceCodeOf(String label, Class<?> clazz, Includes... includeOptions)
@Deprecated public Recording thisMethod(String label)
label - name for this segmentpublic Recording resource(String label, Class<?> clazz, String resourceName, ResourceFilter... filters)
public Recording replacementNotFoundFallback(BiFunction<String,Set<String>,String> fallback)
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
throws Exception
afterAll in interface org.junit.jupiter.api.extension.AfterAllCallbackExceptionpublic void resource(Class<?> clazz, String resourceName, ResourceFilter... filters)
public void begin()
public void begin(String label)
public void end()
protected static Consumer<Runnable> runWithTemplateConsumer(BiConsumer<String,String> consumer)
Copyright © 2022. All rights reserved.