Class DefaultFragmentReaderUnitTest

java.lang.Object
com.hybris.datahub.core.services.impl.DefaultFragmentReaderUnitTest

@UnitTest public class DefaultFragmentReaderUnitTest extends Object
  • Constructor Details

    • DefaultFragmentReaderUnitTest

      public DefaultFragmentReaderUnitTest()
  • Method Details

    • setUp

      public void setUp() throws ImpExException
      Throws:
      ImpExException
    • testSplitsImpexScriptIntoLogicalBlocks

      public void testSplitsImpexScriptIntoLogicalBlocks() throws ImpExException
      Throws:
      ImpExException
    • testPreservesTheOrderOfTheFragmentsAsInTheOriginalScript

      public void testPreservesTheOrderOfTheFragmentsAsInTheOriginalScript() throws ImpExException
      Throws:
      ImpExException
    • testInjectFacadeIntoTheDataFragment

      public void testInjectFacadeIntoTheDataFragment() throws ImpExException
      Throws:
      ImpExException
    • testImportErrorIsCreatedWhenMacroFragmentCannotBeRed

      public void testImportErrorIsCreatedWhenMacroFragmentCannotBeRed() throws ImpExException, IOException
      Throws:
      ImpExException
      IOException
    • testValidationErrorIsAddedToContext

      public void testValidationErrorIsAddedToContext() throws ImpExException
      Throws:
      ImpExException
    • testDataHubDataFragmentIsNotIncludedInFragmentsListWhenItContainsAnInvalidHeader

      public void testDataHubDataFragmentIsNotIncludedInFragmentsListWhenItContainsAnInvalidHeader() throws ImpExException
      Throws:
      ImpExException
    • testThrowsExceptionWhenNullItemImportTaskDataIsPassedToReadScriptFragments

      public void testThrowsExceptionWhenNullItemImportTaskDataIsPassedToReadScriptFragments() throws ImpExException
      Throws:
      ImpExException
    • testThrowsExceptionWhenNullImpexMetaDataIsPassedToReadScriptFragments

      public void testThrowsExceptionWhenNullImpexMetaDataIsPassedToReadScriptFragments() throws ImpExException
      Throws:
      ImpExException