Class DefaultImportErrorsConverterUnitTest

java.lang.Object
de.hybris.platform.dataimportcommons.facades.impl.converter.DefaultImportErrorsConverterUnitTest

@UnitTest public class DefaultImportErrorsConverterUnitTest extends Object
Tests how converter builds the import result and handles the import errors. The error parsing of the error log and the unresolved lines reported in the import result is simulated for more comprehensive case coverage.
  • Constructor Details

    • DefaultImportErrorsConverterUnitTest

      public DefaultImportErrorsConverterUnitTest()
  • Method Details

    • setup

      public void setup()
    • testConvertsNullImportResultToNullItemsImportResult

      public void testConvertsNullImportResultToNullItemsImportResult()
    • testConvertsSuccessfulImportResult

      public void testConvertsSuccessfulImportResult()
    • testDoesNotAttemptToCollectErrorsWhenResultIsSuccessful

      public void testDoesNotAttemptToCollectErrorsWhenResultIsSuccessful()
    • testConvertedResultIsErrorWhenImportServiceReturnsErrors

      public void testConvertedResultIsErrorWhenImportServiceReturnsErrors()
    • testThrowsExceptionWhenErrorLimitIsExceeded

      public void testThrowsExceptionWhenErrorLimitIsExceeded()
    • testConverterForUnlimitedErrors

      public void testConverterForUnlimitedErrors()
    • testConverterIsLimitedErrorResultsWhenLimitEqualToZero

      public void testConverterIsLimitedErrorResultsWhenLimitEqualToZero()
    • testConverterIsLimitedErrorResultsWhenLimitGreaterThanZero

      public void testConverterIsLimitedErrorResultsWhenLimitGreaterThanZero()
    • testConverterIsUnlimitedErrorResults

      public void testConverterIsUnlimitedErrorResults()
    • testConvertedResultIsErrorWhenImportResultIsError

      public void testConvertedResultIsErrorWhenImportResultIsError()