Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Attributes | List of all members
org.sleuthkit.autopsy.integrationtesting.config.TestingConfig Class Reference

Public Member Functions

 TestingConfig (@JsonProperty("excludeAllExcept") List< ParameterizedResourceConfig > excludeAllExcept,@JsonProperty("includeAllExcept") List< String > includeAllExcept)
 
Set< ParameterizedResourceConfiggetExcludeAllExcept ()
 
Set< String > getIncludeAllExcept ()
 
Map< String, Object > getParameters (String itemType)
 
boolean hasIncludedTest (String itemType)
 

Private Attributes

final Map< String, ParameterizedResourceConfigexcludeAllExcept
 
final Set< String > includeAllExcept
 

Detailed Description

Configuration for which integration test suites to run.

Definition at line 38 of file TestingConfig.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.integrationtesting.config.TestingConfig.TestingConfig ( @JsonProperty("excludeAllExcept") List< ParameterizedResourceConfig excludeAllExcept,
@JsonProperty("includeAllExcept") List< String >  includeAllExcept 
)

Main constructor for Integration tests to be run.

Parameters
excludeAllExceptItems that should be run to the exclusion of all others.
includeAllExceptItems that should only be run.

Definition at line 51 of file TestingConfig.java.

Member Function Documentation

Set<ParameterizedResourceConfig> org.sleuthkit.autopsy.integrationtesting.config.TestingConfig.getExcludeAllExcept ( )
Returns
The test suites to be run. If not specified, getIncludeAllExcept will be used. If that is not specified, all tests will be run.

Definition at line 83 of file TestingConfig.java.

Set<String> org.sleuthkit.autopsy.integrationtesting.config.TestingConfig.getIncludeAllExcept ( )
Returns
The test suites explicitly to exclude. If not specified, getExcludeAllExcept will be used. If that is not specified, all tests will be run.

Definition at line 92 of file TestingConfig.java.

Map<String, Object> org.sleuthkit.autopsy.integrationtesting.config.TestingConfig.getParameters ( String  itemType)

Retrieve parameters if any exist for a particular integration test group.

Parameters
itemTypeThe identifier for the integration test group.
Returns
The map of fields to values for that test group or an empty map if no arguments are present.

Definition at line 103 of file TestingConfig.java.

References org.sleuthkit.autopsy.integrationtesting.config.ParameterizedResourceConfig.getParameters().

Referenced by org.sleuthkit.autopsy.integrationtesting.IntegrationTestService.runIntegrationTests().

boolean org.sleuthkit.autopsy.integrationtesting.config.TestingConfig.hasIncludedTest ( String  itemType)

Whether or not the current settings contain the current test.

Parameters
itemTypeThe fully qualified name of the test suite.
Returns
True if this test should be run.

Definition at line 114 of file TestingConfig.java.

Referenced by org.sleuthkit.autopsy.integrationtesting.IntegrationTestService.runIntegrationTests().

Member Data Documentation

final Map<String, ParameterizedResourceConfig> org.sleuthkit.autopsy.integrationtesting.config.TestingConfig.excludeAllExcept
private

Definition at line 40 of file TestingConfig.java.

final Set<String> org.sleuthkit.autopsy.integrationtesting.config.TestingConfig.includeAllExcept
private

Definition at line 41 of file TestingConfig.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2022 Basis Technology. Generated on: Sat Sep 24 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.