Skip to content
Snippets Groups Projects
Commit 0e3f5552 authored by jakubs's avatar jakubs
Browse files

BIS-173 add more informative error message to the failing test.

SVN: 26550
parent 09eebfee
No related branches found
No related tags found
No related merge requests found
...@@ -160,7 +160,12 @@ public class EntityValidationTest extends GenericSystemTestCase ...@@ -160,7 +160,12 @@ public class EntityValidationTest extends GenericSystemTestCase
try try
{ {
etlService.updateSample(systemSessionToken, update); etlService.updateSample(systemSessionToken, update);
fail("update of sample with impossible to update type should fail");
Script script =
commonServer.getScriptInfo(systemSessionToken, new TechId(TEST_SCRIPT_ID));
fail("update of sample with impossible to update type should fail. Validation script is:\n"
+ script.getScript());
} catch (Exception ufe) } catch (Exception ufe)
{ {
assertTrue(ufe.getMessage(), ufe.getMessage().contains("Validation of sample")); assertTrue(ufe.getMessage(), ufe.getMessage().contains("Validation of sample"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment