]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman-Common/src/test/splat/service/TestStepService.java
Salome HOME
ProjectSettings are now configured when the bean is created (without call to a struts...
[tools/siman.git] / Workspace / Siman-Common / src / test / splat / service / TestStepService.java
index 9ead1345b23373d70ca665eb37b217a0774b01f6..0003b00703063b60a112649fc219d173ae2b12f6 100644 (file)
@@ -180,8 +180,7 @@ public class TestStepService extends BaseTest {
                startNestedTransaction();
 
                _projectSettings.getAllSteps().clear(); // Clear config to be able to load it again
-               _projectSettings.configure(ClassLoader
-                               .getSystemResource("test/som.xml").getPath());
+               _projectSettings.configure("classpath:test/som.xml");
                HibernateTemplate ht = getHibernateTemplate();
                ht.flush();
                long scenarioId = createScenario();
@@ -460,8 +459,7 @@ public class TestStepService extends BaseTest {
                _projectSettings.getAllSteps().clear(); // Clear config to be able to load it again
                // Load workflow customization
                try {
-                       _projectSettings.configure(ClassLoader.getSystemResource(
-                                       "test/som.xml").getPath());
+                       _projectSettings.configure("classpath:test/som.xml");
                } catch (FileNotFoundException e) {
                        Assert.fail("Can't find som.xml: ", e);
                }
@@ -845,7 +843,7 @@ public class TestStepService extends BaseTest {
         * @param title the title
         * @throws InvalidParameterException if there is something wrong likely unrelated to the tested method
         */
-       private void testEdit(StepCommentAttribute comment, String value, String title)
+       private void testEdit(final StepCommentAttribute comment, final String value, final String title)
                        throws InvalidParameterException {
                String oldValue = comment.getValue();
                String oldTitle = comment.getTitle();