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.Object
A 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 void
assertLineIsInTheFragment(boolean wasAdded, java.lang.String exp)
protected void
assertLineWasNotAdded(boolean wasAdded, java.lang.String line)
protected java.lang.String
readContentFromTheInputStream()
protected void
testLineThatShouldBeAdded(java.lang.String line)
protected void
testLineThatShouldNotBeAdded(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
-
-