Class BaseFileSandBoxTest
- java.lang.Object
-
- de.hybris.platform.acceleratorservices.velocity.BaseFileSandBoxTest
-
- Direct Known Subclasses:
DefaultScriptReadWriteHandlerTest,GenerateLocalizedImpexesBeanTest,PathTemplateTest,VelocityEvaluateTest
@ContextConfiguration(locations="classpath:/acceleratorservices/test/impexgenerator/test-generate-impex-spring.xml") @DirtiesContext public abstract class BaseFileSandBoxTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringGENERATED_IMPEXES_DIRstatic org.apache.log4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description BaseFileSandBoxTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidassertGenerated(java.lang.String rootgenerated, java.lang.String[] generatedNames)protected voidassertHasLine(java.util.Iterator<java.lang.String> lines, java.lang.String lineExpected)protected voidassertNothingGenerated(java.lang.String rootgenerated)voidcleanUp()protected voidcleanUpFileStructure(boolean recreate)protected java.util.Map<java.lang.String,java.util.List<java.lang.String>>getAllMatchingTemplates(java.io.File directory)protected java.util.Map<java.lang.String,java.util.List<java.lang.String>>getAllMatchingTemplates(java.io.File directory, java.lang.String nameCriteria)protected abstract org.springframework.core.io.ResourcegetRootDir()voidprepare()
-
-
-
Field Detail
-
LOG
public static final org.apache.log4j.Logger LOG
-
GENERATED_IMPEXES_DIR
protected static final java.lang.String GENERATED_IMPEXES_DIR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getRootDir
protected abstract org.springframework.core.io.Resource getRootDir()
-
cleanUpFileStructure
protected void cleanUpFileStructure(boolean recreate) throws java.io.IOException- Throws:
java.io.IOException
-
assertNothingGenerated
protected void assertNothingGenerated(java.lang.String rootgenerated) throws java.io.IOException- Throws:
java.io.IOException
-
assertGenerated
protected void assertGenerated(java.lang.String rootgenerated, java.lang.String[] generatedNames) throws java.io.IOException- Throws:
java.io.IOException
-
assertHasLine
protected void assertHasLine(java.util.Iterator<java.lang.String> lines, java.lang.String lineExpected)- Parameters:
lines-
-
getAllMatchingTemplates
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAllMatchingTemplates(java.io.File directory)
-
getAllMatchingTemplates
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAllMatchingTemplates(java.io.File directory, java.lang.String nameCriteria)
-
prepare
public void prepare() throws java.io.IOException- Throws:
java.io.IOException
-
cleanUp
public void cleanUp() throws java.io.IOException- Throws:
java.io.IOException
-
-