Class PerfTestConfigurationExtension
java.lang.Object
org.operaton.bpm.qa.performance.engine.junit.PerfTestConfigurationExtension
- All Implemented Interfaces:
org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.Extension,org.junit.jupiter.api.extension.TestWatcher
public class PerfTestConfigurationExtension
extends Object
implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.TestWatcher
JUnit 5 extension allowing to load the performance test configuration from a file.
This extension loads the configuration once before all tests are executed.
Usage:
@ExtendWith(PerfTestConfigurationExtension.class)
public class YourTest {
// your test methods
}
The configuration file should be named "perf-test-config.properties" and should be located in the classpath.
Example configuration file:
key1=value1 key2=value2
- Author:
- Daniel Meyer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeAll(org.junit.jupiter.api.extension.ExtensionContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.jupiter.api.extension.TestWatcher
testAborted, testDisabled, testFailed, testSuccessful
-
Constructor Details
-
PerfTestConfigurationExtension
public PerfTestConfigurationExtension()
-
-
Method Details
-
beforeAll
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) - Specified by:
beforeAllin interfaceorg.junit.jupiter.api.extension.BeforeAllCallback
-
getPerformanceTestConfiguration
-