Autopsy  4.19.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 CaseUtils.java.

Constructor & Destructor Documentation

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

Private constructor to prevent utility class object instantiation.

Definition at line 82 of file CaseUtils.java.

Member Function Documentation

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

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 CaseUtils.java.

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
static

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.

Parameters
caseNameThe case name.
Returns
The new case.

Definition at line 44 of file CaseUtils.java.

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-2021 Basis Technology. Generated on: Fri Aug 6 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.