java.lang.Object
io.github.ascopes.jct.junit.AbstractCompilersProvider
io.github.ascopes.jct.junit.JavacCompilersProvider
- All Implemented Interfaces:
Consumer<JavacCompilerTest>,ArgumentsProvider,AnnotationConsumer<JavacCompilerTest>
@API(since="0.0.1",
status=STABLE)
public final class JavacCompilersProvider
extends AbstractCompilersProvider
implements AnnotationConsumer<JavacCompilerTest>
Argument provider for the
JavacCompilerTest annotation.- Since:
- 0.0.1
- Author:
- Ashley Scopes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(JavacCompilerTest annotation) protected JctCompilerInitialise a new compiler.protected intGet the maximum supported compiler version.protected intGet the minimum supported compiler version.Methods inherited from class io.github.ascopes.jct.junit.AbstractCompilersProvider
configure, provideArguments
-
Constructor Details
-
JavacCompilersProvider
Initialise the provider.This is only visible for testing purposes, users should have no need to initialise this class directly.
-
-
Method Details
-
initializeNewCompiler
Description copied from class:AbstractCompilersProviderInitialise a new compiler.- Specified by:
initializeNewCompilerin classAbstractCompilersProvider- Returns:
- the compiler object.
-
minSupportedVersion
Description copied from class:AbstractCompilersProviderGet the minimum supported compiler version.- Specified by:
minSupportedVersionin classAbstractCompilersProvider- Returns:
- the minimum supported compiler version.
-
maxSupportedVersion
Description copied from class:AbstractCompilersProviderGet the maximum supported compiler version.- Specified by:
maxSupportedVersionin classAbstractCompilersProvider- Returns:
- the minimum supported compiler version.
-
accept
- Specified by:
acceptin interfaceConsumer<JavacCompilerTest>
-