Autopsy  4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Static Public Member Functions | Private Member Functions | List of all members
org.sleuthkit.autopsy.testutils.CaseUtils Class Reference

Static Public Member Functions

static void closeCurrentCase () throws TestUtilsException
static Case createAsCurrentCase (String caseName) throws TestUtilsException

Private Member Functions

 CaseUtils ()

Detailed Description

Class with utility methods for opening and closing cases for functional testing purposes.

Definition at line 33 of file

Constructor & Destructor Documentation

org.sleuthkit.autopsy.testutils.CaseUtils.CaseUtils ( )

Private constructor to prevent utility class object instantiation.

Definition at line 82 of file

Member Function Documentation

static void org.sleuthkit.autopsy.testutils.CaseUtils.closeCurrentCase ( ) throws TestUtilsException

Closes the current case, and optionally deletes it. Asserts if there is no current case or if there is an error closing the current case.

Definition at line 61 of file

References org.sleuthkit.autopsy.casemodule.Case.closeCurrentCase(), org.sleuthkit.autopsy.casemodule.Case.getCaseDirectory(), org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.getName().

static Case org.sleuthkit.autopsy.testutils.CaseUtils.createAsCurrentCase ( String  caseName) throws TestUtilsException

Appends a time stamp to the given case name for uniqueness and creates a case as the current case in the temp directory. Asserts if there is an error creating the case.

caseNameThe case name.
The new case.

Definition at line 44 of file

References org.sleuthkit.autopsy.casemodule.Case.createAsCurrentCase(), org.sleuthkit.autopsy.coreutils.TimeStampUtils.createTimeStamp(), org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.CaseType.SINGLE_USER_CASE.

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

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.