Class DataHubDataFragmentUnitTest

java.lang.Object
com.hybris.datahub.core.services.impl.AbstractScriptFragmentTest<DataHubDataFragment>
com.hybris.datahub.core.services.impl.DataHubDataFragmentUnitTest

@UnitTest public class DataHubDataFragmentUnitTest extends AbstractScriptFragmentTest<DataHubDataFragment>
  • Constructor Details

    • DataHubDataFragmentUnitTest

      public DataHubDataFragmentUnitTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • testTheFacadeImplementationCanBeReadBack

      public void testTheFacadeImplementationCanBeReadBack()
    • testScriptFragmentIsEmptyBeforeAnyLineWasAdded

      public void testScriptFragmentIsEmptyBeforeAnyLineWasAdded() throws IOException
      Throws:
      IOException
    • testCommentCannotBeAdded

      public void testCommentCannotBeAdded() throws IOException
      Throws:
      IOException
    • testMacroCannotBeAdded

      public void testMacroCannotBeAdded() throws IOException
      Throws:
      IOException
    • testEmptyLineCanBeAdded

      public void testEmptyLineCanBeAdded() throws IOException
      Throws:
      IOException
    • testNullCannotBeAdded

      public void testNullCannotBeAdded() throws IOException
      Throws:
      IOException
    • testSomeTextCannotBeAdded

      public void testSomeTextCannotBeAdded() throws IOException
      Throws:
      IOException
    • testINSERT_UPDATEHeaderCanBeAdded

      public void testINSERT_UPDATEHeaderCanBeAdded() throws IOException
      Throws:
      IOException
    • testREMOVEHeaderCanBeAdded

      public void testREMOVEHeaderCanBeAdded() throws IOException
      Throws:
      IOException
    • testINSERTHeaderCanBeAdded

      public void testINSERTHeaderCanBeAdded() throws IOException
      Throws:
      IOException
    • testUrlIsEmptyBeforeTheUrlCommentWasAdded

      public void testUrlIsEmptyBeforeTheUrlCommentWasAdded()
    • testURLCommentCanBeAdded

      public void testURLCommentCanBeAdded()
    • testHeadersAreEmptyBeforeAnyHeaderIsAdded

      public void testHeadersAreEmptyBeforeAnyHeaderIsAdded()
    • testHEADERCommentCanBeAdded

      public void testHEADERCommentCanBeAdded()
    • testIgnoresUnparsibleHeader

      public void testIgnoresUnparsibleHeader()
    • testContentIsDataFromTheIntegrationLayerInsteadOfAddedLines

      public void testContentIsDataFromTheIntegrationLayerInsteadOfAddedLines() throws IOException
      Throws:
      IOException
    • testPassesUrlAndHeadersToTheIntegrationLayer

      public void testPassesUrlAndHeadersToTheIntegrationLayer() throws IOException
      Throws:
      IOException
    • testDataFromTheIntegrationLayerCanBeRetrievedAsStream

      public void testDataFromTheIntegrationLayerCanBeRetrievedAsStream() throws IOException
      Throws:
      IOException
    • testOtherExceptionsAreConvertedToIOExceptionWhenInputStreamIsRetreived

      public void testOtherExceptionsAreConvertedToIOExceptionWhenInputStreamIsRetreived() throws IOException
      Throws:
      IOException
    • testHeaderCanBeAdded

      public void testHeaderCanBeAdded() throws IOException
      Throws:
      IOException
    • testValidMacroAndHeader

      public void testValidMacroAndHeader() throws IOException
      Throws:
      IOException
    • testValidMacroAndInvalidHeader

      public void testValidMacroAndInvalidHeader() throws Exception
      Throws:
      Exception
    • testInvalidHeaderAndCannotReadBody

      public void testInvalidHeaderAndCannotReadBody() throws Exception
      Throws:
      Exception
    • testHeaderCannotBeAddedTwice

      public void testHeaderCannotBeAddedTwice()
    • testThrowsExceptionWhenNullIsPassedToTheConstructor

      public void testThrowsExceptionWhenNullIsPassedToTheConstructor()