]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Added test of checkin with empty list of steps.
authorrkv <rkv@opencascade.com>
Tue, 4 Dec 2012 07:00:45 +0000 (07:00 +0000)
committerrkv <rkv@opencascade.com>
Tue, 4 Dec 2012 07:00:45 +0000 (07:00 +0000)
Workspace/Siman-Common/src/test/splat/service/TestScenarioService.java

index 5a391b75cf2e3dbed2164066c1eeb1e2ab451fb6..ef5fce11787e722d04a9bd41a92b11e248d00d9b 100644 (file)
@@ -23,7 +23,6 @@ import java.util.Set;
 import org.splat.dal.bo.kernel.Relation;
 import org.splat.dal.bo.kernel.User;
 import org.splat.dal.bo.som.Document;
-import org.splat.dal.bo.som.Document.Properties;
 import org.splat.dal.bo.som.DocumentType;
 import org.splat.dal.bo.som.KnowledgeElementType;
 import org.splat.dal.bo.som.Publication;
@@ -33,6 +32,7 @@ import org.splat.dal.bo.som.SimulationContextType;
 import org.splat.dal.bo.som.Study;
 import org.splat.dal.bo.som.UsedByRelation;
 import org.splat.dal.bo.som.UsesRelation;
+import org.splat.dal.bo.som.Document.Properties;
 import org.splat.dal.dao.som.Database;
 import org.splat.dal.dao.som.ScenarioDAO;
 import org.splat.kernel.InvalidPropertyException;
@@ -51,8 +51,8 @@ import org.splat.service.dto.DocumentDTO;
 import org.splat.service.dto.FileDTO;
 import org.splat.service.dto.StepDTO;
 import org.splat.service.technical.ProjectSettingsService;
-import org.splat.service.technical.ProjectSettingsService.Step;
 import org.splat.service.technical.RepositoryService;
+import org.splat.service.technical.ProjectSettingsService.Step;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Qualifier;
 import org.springframework.orm.hibernate3.HibernateTemplate;
@@ -505,6 +505,10 @@ public class TestScenarioService extends BaseTest {
                                        + e.getClass().getSimpleName() + ": " + e.getMessage());
                }
 
+               // Test checkin with empty list of steps
+               stepsToCheckin.clear();
+               _scenarioService.checkin(scenarioId, userId, stepsToCheckin);
+
                rollbackNestedTransaction();
                LOG.debug(">>>>> END testCheckin()");
        }