3752 change calls to getOpenCase to getCurrentCaseThrows

This commit is contained in:
William Schaefer 2018-05-08 16:31:10 -04:00
parent 7446e82e3e
commit 7c96bc0713

View File

@ -82,7 +82,7 @@ public class EncryptionDetectionTest extends NbTestCase {
String joinedErrors = String.join(System.lineSeparator(), errorMessages);
assertEquals(joinedErrors, 0, errorMessages.size());
Case openCase = Case.getOpenCase();
Case openCase = Case.getCurrentCaseThrows();
/*
* Create ingest job settings.
*/
@ -187,7 +187,7 @@ public class EncryptionDetectionTest extends NbTestCase {
//there will be 1 expected error regarding the encrypted partition not having a file system
assertEquals(joinedErrors, 1, errorMessages.size());
Case openCase = Case.getOpenCase();
Case openCase = Case.getCurrentCaseThrows();
ArrayList<IngestModuleTemplate> templates = new ArrayList<>();
templates.add(IngestUtils.getIngestModuleTemplate(new EncryptionDetectionModuleFactory()));
//image includes an encrypted container file with size greater than 5 mb so default settings detect it