mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
Put case ID test back in.
This commit is contained in:
parent
5d67e4f991
commit
d0d320a0e5
@ -2377,6 +2377,18 @@ public class CentralRepoDatamodelTest extends TestCase {
|
||||
Assert.fail(ex.getMessage());
|
||||
return;
|
||||
}
|
||||
|
||||
// Test creating a data source with an invalid case ID
|
||||
try {
|
||||
CorrelationCase correlationCase = new CorrelationCase("1", "test");
|
||||
CorrelationDataSource temp = new CorrelationDataSource(correlationCase, "tempID", "tempName",
|
||||
0L, null, null, null);
|
||||
EamDb.getInstance().newDataSource(temp);
|
||||
fail("newDataSource did not throw exception from invalid case ID");
|
||||
} catch (EamDbException ex) {
|
||||
// This is the expected behavior
|
||||
assertTrue(THIS_IS_THE_EXPECTED_BEHAVIOR, true);
|
||||
}
|
||||
|
||||
// Test getting a data source with valid case and ID
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user