From 2bbb3917f98fd0f5064fbf85b0955d1b042fa37f Mon Sep 17 00:00:00 2001 From: pkupczyk <pkupczyk> Date: Mon, 2 Jul 2012 08:07:35 +0000 Subject: [PATCH] SP-133 / BIS-41 : Improve Optimistic Locking - junit fix SVN: 25960 --- .../ch/systemsx/cisd/openbis/generic/server/ETLServiceTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/ETLServiceTest.java b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/ETLServiceTest.java index 0f6c58b8c86..af15f07cdc3 100644 --- a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/ETLServiceTest.java +++ b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/server/ETLServiceTest.java @@ -1100,6 +1100,7 @@ public class ETLServiceTest extends AbstractServerTestCase List<SampleUpdatesDTO> sampleUpdateList = Arrays.asList(sampleUpdate); one(entityOperationChecker).assertSpaceSampleUpdateAllowed(SESSION, sampleUpdateList); + one(sampleTable).checkBeforeUpdate(sampleUpdateList); one(sampleTable).prepareForUpdateWithSampleUpdates(sampleUpdateList); one(sampleTable).save(); @@ -1147,6 +1148,7 @@ public class ETLServiceTest extends AbstractServerTestCase one(entityOperationChecker).assertDataSetUpdateAllowed(SESSION, Arrays.asList(dataSetUpdate)); + one(dataSetTable).checkBeforeUpdate(Arrays.asList(dataSetUpdate)); one(dataSetTable).update(Arrays.asList(dataSetUpdate)); one(dataSetTable).save(); } -- GitLab