Package io.qameta.allure.core
Interface Configuration
public interface Configuration
Report configuration.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<Aggregator>Deprecated.for removal.getContext(Class<S> contextType) Resolve context by given type.Returns all discovered extensions.getExtensions(Class<T> extensionType) Returns all discovered extensions of specified type.Returns all configured plugins.Deprecated.for removal.default StringReturns the report name.default <T,S extends Context<T>>
SrequireContext(Class<S> contextType) The same asgetContext(Class)but throws an exception if context doesn't present.
-
Method Details
-
getReportName
Returns the report name.- Returns:
- the report name.
-
getPlugins
Returns all configured plugins.- Returns:
- configured plugins.
-
getAggregators
Deprecated.for removal. UsegetExtensions()instead.Returns all configured aggregators.- Returns:
- configured aggregators.
-
getReaders
Deprecated.for removal. UsegetExtensions()instead.Returns all configured readers.- Returns:
- configured readers.
-
getExtensions
Returns all discovered extensions.- Returns:
- configured extensions.
-
getExtensions
Returns all discovered extensions of specified type.- Type Parameters:
T- the type of extension.- Parameters:
extensionType- the type of extension.- Returns:
- configured extensions.
-
getContext
Resolve context by given type.- Type Parameters:
S- the java type of context.T- the java type of context's type.- Parameters:
contextType- type of context to resolve.- Returns:
- resolved context.
-
requireContext
The same asgetContext(Class)but throws an exception if context doesn't present.- Returns:
- resolved context.
- Throws:
ContextNotFoundException- if no such context present.
-