Put case ID test back in.

This commit is contained in:
U-BASIS\dgrove 2019-02-07 14:45:51 -05:00
parent 5d67e4f991
commit d0d320a0e5

View File

@ -2377,6 +2377,18 @@ public class CentralRepoDatamodelTest extends TestCase {
Assert.fail(ex.getMessage()); Assert.fail(ex.getMessage());
return; 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 // Test getting a data source with valid case and ID
try { try {