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 Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringstatic final org.apache.log4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertGenerated(String rootgenerated, String[] generatedNames) protected voidassertHasLine(Iterator<String> lines, String lineExpected) protected voidassertNothingGenerated(String rootgenerated) voidcleanUp()protected voidcleanUpFileStructure(boolean recreate) getAllMatchingTemplates(File directory) getAllMatchingTemplates(File directory, String nameCriteria) protected abstract org.springframework.core.io.Resourcevoidprepare()
-
Field Details
-
LOG
public static final org.apache.log4j.Logger LOG -
GENERATED_IMPEXES_DIR
- See Also:
-
-
Constructor Details
-
BaseFileSandBoxTest
public BaseFileSandBoxTest()
-
-
Method Details
-
getRootDir
protected abstract org.springframework.core.io.Resource getRootDir() -
cleanUpFileStructure
- Throws:
IOException
-
assertNothingGenerated
- Throws:
IOException
-
assertGenerated
- Throws:
IOException
-
assertHasLine
- Parameters:
lines-
-
getAllMatchingTemplates
-
getAllMatchingTemplates
-
prepare
- Throws:
IOException
-
cleanUp
- Throws:
IOException
-