X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.spring%2Fext%2Ftest%2Forg%2Fargeo%2Fslc%2Fcore%2Fexecution%2FFileExecutionResourcesSpringTest.java;fp=org.argeo.slc.spring%2Fext%2Ftest%2Forg%2Fargeo%2Fslc%2Fcore%2Fexecution%2FFileExecutionResourcesSpringTest.java;h=0000000000000000000000000000000000000000;hb=ecc22e604e47533c79de9cecdcdeacbc752cbff1;hp=0d1223a499852a3de13f284414b21061376e85a0;hpb=e07ded4632e53f8b8869763bc1f1f4091361e76e;p=gpl%2Fargeo-slc.git 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 index 0d1223a49..000000000 --- a/org.argeo.slc.spring/ext/test/org/argeo/slc/core/execution/FileExecutionResourcesSpringTest.java +++ /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)); - } -}