Class AbstractScriptFragmentTest<T extends ImpExFragment>
- java.lang.Object
-
- com.hybris.datahub.core.services.impl.AbstractScriptFragmentTest<T>
-
- Direct Known Subclasses:
ConstantTextFragmentUnitTest,DataHubDataFragmentUnitTest,ImpexMacroFragmentUnitTest
public abstract class AbstractScriptFragmentTest<T extends ImpExFragment> extends java.lang.ObjectA base test for testing ImpEx script fragments.
-
-
Constructor Summary
Constructors Constructor Description AbstractScriptFragmentTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassertLineIsInTheFragment(boolean wasAdded, java.lang.String exp)protected voidassertLineWasNotAdded(boolean wasAdded, java.lang.String line)protected java.lang.StringreadContentFromTheInputStream()protected voidtestLineThatShouldBeAdded(java.lang.String line)protected voidtestLineThatShouldNotBeAdded(java.lang.String line)
-
-
-
Field Detail
-
fragment
protected T extends ImpExFragment fragment
-
-
Method Detail
-
testLineThatShouldNotBeAdded
protected void testLineThatShouldNotBeAdded(java.lang.String line) throws java.io.IOException- Throws:
java.io.IOException
-
assertLineWasNotAdded
protected void assertLineWasNotAdded(boolean wasAdded, java.lang.String line) throws java.io.IOException- Throws:
java.io.IOException
-
readContentFromTheInputStream
protected java.lang.String readContentFromTheInputStream() throws java.io.IOException- Throws:
java.io.IOException
-
testLineThatShouldBeAdded
protected void testLineThatShouldBeAdded(java.lang.String line) throws java.io.IOException- Throws:
java.io.IOException
-
assertLineIsInTheFragment
protected void assertLineIsInTheFragment(boolean wasAdded, java.lang.String exp) throws java.io.IOException- Throws:
java.io.IOException
-
-