Skip navigation links
A B C D E G H I P R S T W 

A

afterAll(ExtensionContext) - Method in class io.github.glytching.junit.extension.system.SystemPropertyExtension
If a RestoreContext exists for the given extensionContext then restore it i.e.
afterEach(ExtensionContext) - Method in class io.github.glytching.junit.extension.system.SystemPropertyExtension
If a RestoreContext exists for the given extensionContext then restore it i.e.
afterTestExecution(ExtensionContext) - Method in class io.github.glytching.junit.extension.benchmark.BenchmarkExtension
afterTestExecution(ExtensionContext) - Method in class io.github.glytching.junit.extension.exception.ExpectedExceptionExtension
The presence of ExpectedException on a test is a clear statement by the developer that some exception must be thrown by that test.
afterTestExecution(ExtensionContext) - Method in class io.github.glytching.junit.extension.testname.TestNameExtension
 
afterTestExecution(ExtensionContext) - Method in class io.github.glytching.junit.extension.watcher.WatcherExtension
Log test method exit, using the start time stored by WatcherExtension.beforeTestExecution(ExtensionContext) to calculate a duration.

B

beforeAll(ExtensionContext) - Method in class io.github.glytching.junit.extension.system.SystemPropertyExtension
If the current test class has a system property annotation(s) then create a RestoreContext representing the annotation(s).
beforeEach(ExtensionContext) - Method in class io.github.glytching.junit.extension.system.SystemPropertyExtension
If the current test method has a system property annotation(s) then create a RestoreContext representing the annotation(s).
beforeTestExecution(ExtensionContext) - Method in class io.github.glytching.junit.extension.benchmark.BenchmarkExtension
Store a StopWatch instance against the test method name for use in BenchmarkExtension.afterTestExecution(ExtensionContext).
beforeTestExecution(ExtensionContext) - Method in class io.github.glytching.junit.extension.testname.TestNameExtension
 
beforeTestExecution(ExtensionContext) - Method in class io.github.glytching.junit.extension.watcher.WatcherExtension
Log test method entry and store its start time in the ExtensionContext.Store for use in WatcherExtension.afterTestExecution(ExtensionContext).
BenchmarkExtension - Class in io.github.glytching.junit.extension.benchmark
The benchmark extension publishes elapsed time to the execution listener.
BenchmarkExtension() - Constructor for class io.github.glytching.junit.extension.benchmark.BenchmarkExtension
Constructs an instance of this class which will report using the default time unit.
BenchmarkExtension(TimeUnit) - Constructor for class io.github.glytching.junit.extension.benchmark.BenchmarkExtension
Constructs an instance of this class which will report using the given timeUnit.

C

close() - Method in class io.github.glytching.junit.extension.folder.TemporaryFolder
 
createDirectory(String) - Method in class io.github.glytching.junit.extension.folder.TemporaryFolder
Create a directory within the temporary folder root.
createFile(String) - Method in class io.github.glytching.junit.extension.folder.TemporaryFolder
Create a file within the temporary folder root.

D

duration(TimeUnit) - Method in class io.github.glytching.junit.extension.benchmark.StopWatch
Returns the duration of since this instance was created.

E

ExpectedException - Annotation Type in io.github.glytching.junit.extension.exception
Describes the expectations for an exception, including: The exception class Case sensitive matchers on the exception message in the form of: Message matches exactly Message starts with Message contains
ExpectedExceptionExtension - Class in io.github.glytching.junit.extension.exception
The expected exception extension allows the developer to express the expectations of an exception to be thrown by the code-under-test.
ExpectedExceptionExtension() - Constructor for class io.github.glytching.junit.extension.exception.ExpectedExceptionExtension
 
ExtensionUtil - Class in io.github.glytching.junit.extension.util
 

G

getRoot() - Method in class io.github.glytching.junit.extension.folder.TemporaryFolder
Returns the root folder.
getStore(ExtensionContext, Class) - Static method in class io.github.glytching.junit.extension.util.ExtensionUtil
Creates a ExtensionContext.Store for a given extensionContext.

H

handleTestExecutionException(ExtensionContext, Throwable) - Method in class io.github.glytching.junit.extension.exception.ExpectedExceptionExtension
Handle the supplied Throwable throwable.

I

io.github.glytching.junit.extension.benchmark - package io.github.glytching.junit.extension.benchmark
 
io.github.glytching.junit.extension.exception - package io.github.glytching.junit.extension.exception
 
io.github.glytching.junit.extension.folder - package io.github.glytching.junit.extension.folder
 
io.github.glytching.junit.extension.random - package io.github.glytching.junit.extension.random
 
io.github.glytching.junit.extension.system - package io.github.glytching.junit.extension.system
 
io.github.glytching.junit.extension.testname - package io.github.glytching.junit.extension.testname
 
io.github.glytching.junit.extension.util - package io.github.glytching.junit.extension.util
 
io.github.glytching.junit.extension.watcher - package io.github.glytching.junit.extension.watcher
 

P

postProcessTestInstance(Object, ExtensionContext) - Method in class io.github.glytching.junit.extension.random.RandomBeansExtension
Inject random values into any fields which are annotated with Random.

R

Random - Annotation Type in io.github.glytching.junit.extension.random
Allows the caller to customise the random generation of a given type.
RandomBeansExtension - Class in io.github.glytching.junit.extension.random
The random beans extension provides a test with randomly generated objects, including: JDK types Custom types Collections Generic collections Partial population
RandomBeansExtension() - Constructor for class io.github.glytching.junit.extension.random.RandomBeansExtension
Create the extension with a default EnhancedRandom.
RandomBeansExtension(EnhancedRandom) - Constructor for class io.github.glytching.junit.extension.random.RandomBeansExtension
Create the extension with the given EnhancedRandom.
REPORT_EVENT_FORMAT - Static variable in class io.github.glytching.junit.extension.benchmark.BenchmarkExtension
 
resolveParameter(ParameterContext, ExtensionContext) - Method in class io.github.glytching.junit.extension.folder.TemporaryFolderExtension
Provides a value for any parameter context which has passed the TemporaryFolderExtension.supportsParameter(ParameterContext, ExtensionContext) gate.
resolveParameter(ParameterContext, ExtensionContext) - Method in class io.github.glytching.junit.extension.random.RandomBeansExtension
Provides a value for any parameter context which has passed the RandomBeansExtension.supportsParameter(ParameterContext, ExtensionContext) gate.

S

StopWatch - Class in io.github.glytching.junit.extension.benchmark
A simple wrapper for use in reporting test elapsed time in a chosen TimeUnit.
StopWatch() - Constructor for class io.github.glytching.junit.extension.benchmark.StopWatch
Constructs a StopWatch with a start time equal to the system's current nano time.
supportsParameter(ParameterContext, ExtensionContext) - Method in class io.github.glytching.junit.extension.folder.TemporaryFolderExtension
Does this extension support injection for parameters of the type described by the given parameterContext?
supportsParameter(ParameterContext, ExtensionContext) - Method in class io.github.glytching.junit.extension.random.RandomBeansExtension
Does this extension support injection for parameters of the type described by the given parameterContext?
SystemProperties - Annotation Type in io.github.glytching.junit.extension.system
A repeatable annotation for SystemProperty.
SystemProperty - Annotation Type in io.github.glytching.junit.extension.system
Declares a system property to be set before a test.
SystemPropertyExtension - Class in io.github.glytching.junit.extension.system
The system property extension sets system properties before test execution and unsets them on completion.
SystemPropertyExtension() - Constructor for class io.github.glytching.junit.extension.system.SystemPropertyExtension
 

T

TemporaryFolder - Class in io.github.glytching.junit.extension.folder
Encapsulates the TemporaryFolder.rootFolder within which any files or directories will be created along with the operations which a tester may wish to invoke (TemporaryFolder.createFile(String), TemporaryFolder.createDirectory(String)) and post test invocations which the associated extension will invoke.
TemporaryFolderException - Exception in io.github.glytching.junit.extension.folder
 
TemporaryFolderException(String, Exception) - Constructor for exception io.github.glytching.junit.extension.folder.TemporaryFolderException
 
TemporaryFolderExtension - Class in io.github.glytching.junit.extension.folder
The temporary folder extension provides a test with access to temporary files and directories.
TemporaryFolderExtension() - Constructor for class io.github.glytching.junit.extension.folder.TemporaryFolderExtension
 
TestName - Annotation Type in io.github.glytching.junit.extension.testname
Declares a instance variable to be populated with the name of the currently executing test.
TestNameExtension - Class in io.github.glytching.junit.extension.testname
The test name extension makes the current test name available inside each test method.
TestNameExtension() - Constructor for class io.github.glytching.junit.extension.testname.TestNameExtension
 

W

WatcherExtension - Class in io.github.glytching.junit.extension.watcher
The watcher extension logs test execution flow including: Entry Exit Elapsed time in ms
A B C D E G H I P R S T W 
Skip navigation links

Copyright © 2022. All rights reserved.