Autopsy  4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
TestSuiteConfig.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2020 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.integrationtesting.config;
20 
21 import com.fasterxml.jackson.annotation.JsonCreator;
22 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
23 import com.fasterxml.jackson.annotation.JsonProperty;
24 import java.util.Collections;
25 import java.util.List;
26 
30 @JsonIgnoreProperties(ignoreUnknown = true)
31 public class TestSuiteConfig {
32 
33  private final String name;
34  private final String description;
35  private final List<String> dataSources;
36  private final List<ParameterizedResourceConfig> configurationModules;
39  private String relativeOutputPath;
40 
52  @JsonCreator
54  @JsonProperty("name") String name,
55  @JsonProperty("description") String description,
56  @JsonProperty("dataSources") List<String> dataSources,
57  @JsonProperty("configurationModules") List<ParameterizedResourceConfig> configurationModules,
58  @JsonProperty("integrationTests") TestingConfig integrationTests,
59  @JsonProperty("caseTypes") IntegrationCaseType caseTypes) {
60 
61  this.name = name;
62  this.description = description;
63  this.dataSources = dataSources;
64  this.configurationModules = configurationModules;
65  this.integrationTests = integrationTests;
66  this.caseTypes = caseTypes;
67  }
68 
72  public String getName() {
73  return name;
74  }
75 
79  public String getDescription() {
80  return description;
81  }
82 
86  public List<String> getDataSources() {
87  return dataSources == null ? Collections.emptyList() : Collections.unmodifiableList(dataSources);
88  }
89 
94  public List<ParameterizedResourceConfig> getConfigurationModules() {
95  return configurationModules == null ? Collections.emptyList() : Collections.unmodifiableList(configurationModules);
96  }
97 
102  return integrationTests;
103  }
104 
109  return caseTypes;
110  }
111 
118  public String getRelativeOutputPath() {
119  return relativeOutputPath;
120  }
121 
131  public void setRelativeOutputPath(String relativeOutputPath) {
132  this.relativeOutputPath = relativeOutputPath;
133  }
134 
135 }
TestSuiteConfig(@JsonProperty("name") String name,@JsonProperty("description") String description,@JsonProperty("dataSources") List< String > dataSources,@JsonProperty("configurationModules") List< ParameterizedResourceConfig > configurationModules,@JsonProperty("integrationTests") TestingConfig integrationTests,@JsonProperty("caseTypes") IntegrationCaseType caseTypes)
final List< ParameterizedResourceConfig > configurationModules

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.