From 0e3f5552edb6ea6f45e5a0f643c9fd62d453cc7a Mon Sep 17 00:00:00 2001
From: jakubs <jakubs>
Date: Fri, 7 Sep 2012 10:23:04 +0000
Subject: [PATCH] BIS-173 add more informative error message to the failing
 test.

SVN: 26550
---
 .../systemtest/plugin/generic/EntityValidationTest.java    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/systemtest/plugin/generic/EntityValidationTest.java b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/systemtest/plugin/generic/EntityValidationTest.java
index 6b46cbfa04c..6070999e45b 100644
--- a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/systemtest/plugin/generic/EntityValidationTest.java
+++ b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/systemtest/plugin/generic/EntityValidationTest.java
@@ -160,7 +160,12 @@ public class EntityValidationTest extends GenericSystemTestCase
         try
         {
             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)
         {
             assertTrue(ufe.getMessage(), ufe.getMessage().contains("Validation of sample"));
-- 
GitLab