1 package org
.argeo
.slc
.core
.execution
;
5 public class FileExecutionResourcesSpringTest
extends
6 AbstractExecutionFlowTestCase
{
7 private String basePath
= FileExecutionResources
.DEFAULT_EXECUTION_RESOURCES_TMP_PATH
;
9 public void testSimple() throws Exception
{
10 File file
= getFile("subdir/writeTo");
12 assertFalse(file
.exists());
13 configureAndExecuteSlcFlow("executionResources.xml",
14 "executionResources.simple");
15 assertTrue(file
.exists());
21 public void testPlaceholderPass() throws Exception
{
22 File file
= getFile("subdir/60");
24 assertFalse(file
.exists());
25 configureAndExecuteSlcFlow("executionResources.xml",
26 "executionResources.placeholderPass");
27 assertTrue(file
.exists());
34 * Test that it generate the wrong file because of issue when using
35 * execution placeholder in contructor-arg
37 public void testPlaceholderFail() throws Exception
{
38 File file
= getFile("subdir/@{var}");
40 assertFalse(file
.exists());
41 configureAndExecuteSlcFlow("executionResources.xml",
42 "executionResources.placeholderFail");
43 assertTrue(file
.exists());
49 protected File
getFile(String relativePath
) {
50 return new File(basePath
+ File
.separator
51 + relativePath
.replace('/', File
.separatorChar
));