public class BaselinePersistenceExtension extends Object implements org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback
Will persist samples for new baseline based on current test run.
Constructor and Description |
---|
BaselinePersistenceExtension() |
Modifier and Type | Method and Description |
---|---|
void |
afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
Persist all samples after all tests were run.
|
void |
beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
Add context relative Differences.
|
static Differences |
getContextDifferences()
Context relative differences make the samples local to one test method.
|
static Class |
getContextResourceClass()
Context relative differences make the samples local to one test method.
|
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
afterAll
in interface org.junit.jupiter.api.extension.AfterAllCallback
Exception
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
beforeEach
in interface org.junit.jupiter.api.extension.BeforeEachCallback
Exception
public static Differences getContextDifferences()
Differences
object.public static Class getContextResourceClass()
Differences
object.Copyright © 2017–2022 wcm.io QA. All rights reserved.