]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/FileExecutionResourcesSpringTest.java
Clarify SLC project structure.
[gpl/argeo-slc.git] / org.argeo.slc.spring / ext / test / org / argeo / slc / core / execution / FileExecutionResourcesSpringTest.java
diff --git a/org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/FileExecutionResourcesSpringTest.java b/org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/FileExecutionResourcesSpringTest.java
deleted file mode 100644 (file)
index 0d1223a..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-package org.argeo.slc.core.execution;
-
-import java.io.File;
-
-public class FileExecutionResourcesSpringTest extends
-               AbstractExecutionFlowTestCase {
-       private String basePath = FileExecutionResources.DEFAULT_EXECUTION_RESOURCES_TMP_PATH;
-
-       public void testSimple() throws Exception {
-               File file = getFile("subdir/writeTo");
-               try {
-                       assertFalse(file.exists());
-                       configureAndExecuteSlcFlow("executionResources.xml",
-                                       "executionResources.simple");
-                       assertTrue(file.exists());
-               } finally {
-                       file.deleteOnExit();
-               }
-       }
-
-       public void testPlaceholderPass() throws Exception {
-               File file = getFile("subdir/60");
-               try {
-                       assertFalse(file.exists());
-                       configureAndExecuteSlcFlow("executionResources.xml",
-                                       "executionResources.placeholderPass");
-                       assertTrue(file.exists());
-               } finally {
-                       file.deleteOnExit();
-               }
-       }
-
-       /**
-        * Test that it generate the wrong file because of issue when using
-        * execution placeholder in contructor-arg
-        */
-       public void testPlaceholderFail() throws Exception {
-               File file = getFile("subdir/@{var}");
-               try {
-                       assertFalse(file.exists());
-                       configureAndExecuteSlcFlow("executionResources.xml",
-                                       "executionResources.placeholderFail");
-                       assertTrue(file.exists());
-               } finally {
-                       file.deleteOnExit();
-               }
-       }
-
-       protected File getFile(String relativePath) {
-               return new File(basePath + File.separator
-                               + relativePath.replace('/', File.separatorChar));
-       }
-}