Class AbstractScriptFragmentTest<T extends ImpExFragment>
java.lang.Object
com.hybris.datahub.core.services.impl.AbstractScriptFragmentTest<T>
- Direct Known Subclasses:
ConstantTextFragmentUnitTest,DataHubDataFragmentUnitTest,ImpexMacroFragmentUnitTest
A base test for testing ImpEx script fragments.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertLineIsInTheFragment(boolean wasAdded, String exp) protected voidassertLineWasNotAdded(boolean wasAdded, String line) protected Stringprotected voidprotected void
-
Field Details
-
fragment
-
-
Constructor Details
-
AbstractScriptFragmentTest
public AbstractScriptFragmentTest()
-
-
Method Details
-
testLineThatShouldNotBeAdded
- Throws:
IOException
-
assertLineWasNotAdded
- Throws:
IOException
-
readContentFromTheInputStream
- Throws:
IOException
-
testLineThatShouldBeAdded
- Throws:
IOException
-
assertLineIsInTheFragment
- Throws:
IOException
-