Class ConfigExtensionsKt
-
- All Implemented Interfaces:
public final class ConfigExtensionsKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static Stringtitleprivate final static PathtestDirprivate final static HttpUrlendpointprivate final static MediaTypemediaTypeprivate final static Stringmethodprivate final static BooleanshouldExcludeprivate final static BooleanshouldIgnoreprivate final static List<String>preProcessorsprivate final static List<Path>preProcessorScriptsprivate final static List<String>preRunnersprivate final static List<Path>preRunnerScriptsprivate final static List<SquitPreTestTask>preTestTasksprivate final static List<String>postProcessorsprivate final static List<Path>postProcessorScriptsprivate final static List<String>postRunnersprivate final static List<Path>postRunnerScriptsprivate final static List<SquitPostTestTask>postTestTasksprivate final static List<String>tagsprivate final static List<SquitDatabaseConfiguration>databaseConfigurationsprivate final static Map<String, String>headersprivate final static IntegerexpectedResponseCode
-
Method Summary
Modifier and Type Method Description final StringgetTitle()The alternative title of the test. final PathgetTestDir()The path to the directory of the test final HttpUrlgetEndpoint()The endpoint to request against. final MediaTypegetMediaType()The mediaType to use for the request. final StringgetMethod()The method to use for the request. final BooleangetShouldExclude()If the test should be excluded. final BooleangetShouldIgnore()If the test should be ignored. final List<String>getPreProcessors()List of pre-processors to use. final List<Path>getPreProcessorScripts()List of paths to pre-processor scripts to use. final List<String>getPreRunners()List of pre-runners to use. final List<Path>getPreRunnerScripts()List of paths to pre-run scripts to use. final List<SquitPreTestTask>getPreTestTasks()preTestTasks to execute. final List<String>getPostProcessors()List of post-processors to use. final List<Path>getPostProcessorScripts()List of paths to post-processor scripts to use. final List<String>getPostRunners()List of post-runners to use. final List<Path>getPostRunnerScripts()List of paths to pre-run scripts to use. final List<SquitPostTestTask>getPostTestTasks()postTestTasks to execute. final List<String>getTags()List of tags associated with the test. final List<SquitDatabaseConfiguration>getDatabaseConfigurations()List of SquitDatabaseConfiguration objects. final Map<String, String>getHeaders()List of headers to use for the request. final IntegergetExpectedResponseCode()The HTTP status response code that is expected in the response. final static ConfigmergeTag(Config $self, String tag)Merges the given tag into the existing List of tags or creates a new one with it. final static ConfigwithTestDir(Config $self, Path testDir)Sets the given testDir. final static Configvalidate(Config $self)Validates all properties of this instance and throws if a problem is detected. final static PathwriteTo(Config $self, Path path, ConfigRenderOptions options)Writes this config to the given path and applies the given options when rendering. -
-
Method Detail
-
getTestDir
final Path getTestDir()
The path to the directory of the test
-
getEndpoint
final HttpUrl getEndpoint()
The endpoint to request against.
-
getMediaType
final MediaType getMediaType()
The mediaType to use for the request. If none is given, text/plain is used as fallback.
-
getMethod
final String getMethod()
The method to use for the request. This also decides if a request.xml is required or not. If none is given, POST is used as fallback.
-
getShouldExclude
final Boolean getShouldExclude()
If the test should be excluded. Exclusion means that the test is not run at all.
-
getShouldIgnore
final Boolean getShouldIgnore()
If the test should be ignored. Ignoring means that the test is run but not reported.
-
getPreProcessors
final List<String> getPreProcessors()
List of pre-processors to use.
-
getPreProcessorScripts
final List<Path> getPreProcessorScripts()
List of paths to pre-processor scripts to use.
-
getPreRunners
final List<String> getPreRunners()
List of pre-runners to use.
-
getPreRunnerScripts
final List<Path> getPreRunnerScripts()
List of paths to pre-run scripts to use.
-
getPreTestTasks
final List<SquitPreTestTask> getPreTestTasks()
preTestTasks to execute. default: PRE_RUNNERS, PRE_RUNNER_SCRIPTS, DATABASE_SCRIPTS
-
getPostProcessors
final List<String> getPostProcessors()
List of post-processors to use.
-
getPostProcessorScripts
final List<Path> getPostProcessorScripts()
List of paths to post-processor scripts to use.
-
getPostRunners
final List<String> getPostRunners()
List of post-runners to use.
-
getPostRunnerScripts
final List<Path> getPostRunnerScripts()
List of paths to pre-run scripts to use.
-
getPostTestTasks
final List<SquitPostTestTask> getPostTestTasks()
postTestTasks to execute. default: DATABASE_SCRIPTS, POST_RUNNERS, POST_RUNNER_SCRIPTS
-
getDatabaseConfigurations
final List<SquitDatabaseConfiguration> getDatabaseConfigurations()
List of SquitDatabaseConfiguration objects.
-
getHeaders
final Map<String, String> getHeaders()
List of headers to use for the request.
-
getExpectedResponseCode
final Integer getExpectedResponseCode()
The HTTP status response code that is expected in the response.
-
mergeTag
final static Config mergeTag(Config $self, String tag)
Merges the given tag into the existing List of tags or creates a new one with it.
-
withTestDir
final static Config withTestDir(Config $self, Path testDir)
Sets the given testDir.
-
validate
final static Config validate(Config $self)
Validates all properties of this instance and throws if a problem is detected.
-
writeTo
final static Path writeTo(Config $self, Path path, ConfigRenderOptions options)
Writes this config to the given path and applies the given options when rendering.
-
-
-
-