@UnitTest public class DataHubDataFragmentUnitTest extends AbstractScriptFragmentTest<DataHubDataFragment>
| Modifier and Type | Field and Description |
|---|---|
static String |
VALID_IMPEX_HEADER |
fragment| Constructor and Description |
|---|
DataHubDataFragmentUnitTest() |
assertLineIsInTheFragment, assertLineWasNotAdded, readContentFromTheInputStream, testLineThatShouldBeAdded, testLineThatShouldNotBeAddedpublic static final String VALID_IMPEX_HEADER
public void testTheFacadeImplementationCanBeReadBack()
public void testScriptFragmentIsEmptyBeforeAnyLineWasAdded()
throws IOException
IOExceptionpublic void testCommentCannotBeAdded()
throws IOException
IOExceptionpublic void testMacroCannotBeAdded()
throws IOException
IOExceptionpublic void testEmptyLineCanBeAdded()
throws IOException
IOExceptionpublic void testNullCannotBeAdded()
throws IOException
IOExceptionpublic void testSomeTextCannotBeAdded()
throws IOException
IOExceptionpublic void testINSERT_UPDATEHeaderCanBeAdded()
throws IOException
IOExceptionpublic void testREMOVEHeaderCanBeAdded()
throws IOException
IOExceptionpublic void testINSERTHeaderCanBeAdded()
throws IOException
IOExceptionpublic void testUrlIsEmptyBeforeTheUrlCommentWasAdded()
public void testURLCommentCanBeAdded()
public void testHeadersAreEmptyBeforeAnyHeaderIsAdded()
public void testHEADERCommentCanBeAdded()
throws IOException
IOExceptionpublic void testIgnoresUnparsibleHeader()
public void testContentIsDataFromTheIntegrationLayerInsteadOfAddedLines()
throws IOException
IOExceptionpublic void testPassesUrlAndHeadersToTheIntegrationLayer()
throws IOException
IOExceptionpublic void testDataFromTheIntegrationLayerCanBeRetrievedAsStream()
throws IOException
IOExceptionpublic void testOtherExceptionsAreConvertedToIOExceptionWhenInputStreamIsRetreived()
throws IOException
IOExceptionpublic void testHeaderCanBeAdded()
throws IOException
IOExceptionpublic void testValidMacroAndHeader()
throws IOException
IOExceptionpublic void testValidMacroAndInvalidHeader()
throws Exception
Exceptionpublic void testInvalidHeaderAndCannotReadBody()
throws Exception
Exceptionpublic void testHeaderCannotBeAddedTwice()
Copyright © 2017 SAP SE. All Rights Reserved.