Class ImportPatchActionTest

java.lang.Object
de.hybris.platform.patches.actions.ImportPatchActionTest

@UnitTest public class ImportPatchActionTest extends Object
Unit test which is checking updating options for ImpexImportUnit.
  • Constructor Details

    • ImportPatchActionTest

      public ImportPatchActionTest()
  • Method Details

    • setUp

      public void setUp()
    • shouldUpdateFilePathWithGivenSuffix

      public void shouldUpdateFilePathWithGivenSuffix()
      Test checks if data file's path was properly changed.
    • shouldAddHeaderOptionToImportUnit

      public void shouldAddHeaderOptionToImportUnit()
      Test checks if HeaderOption was added to ImportUnit.
    • shouldAddHeaderOptionsToImportUnit

      public void shouldAddHeaderOptionsToImportUnit()
      Test checks if list of HeaderOption's was added to ImportUnit.
    • shouldUpdatedHeaderOptionsWithLanguage

      public void shouldUpdatedHeaderOptionsWithLanguage()
      Test checks if HeaderOption with proper macro was added to ImportUnit and if file path was updated.
    • shouldUpdateOnlyHeaderOptionsWithLanguage

      public void shouldUpdateOnlyHeaderOptionsWithLanguage()
      Test checks if HeaderOption with proper macro was added to ImportUnit and if file path was not changed.
    • shouldValidateImpexFileSuffixAndReturnTrueForCorrectSuffix

      public void shouldValidateImpexFileSuffixAndReturnTrueForCorrectSuffix()
      Test checks if given file path is correct - suffix is ".impex".
    • shouldValidateImpexFileSuffixAndReturnFalseForIncorrectSuffix

      public void shouldValidateImpexFileSuffixAndReturnFalseForIncorrectSuffix()
      Test checks if given file path is incorrect - suffix is case sensitive.
    • shouldValidateImpexFileSuffixAndReturnFalseForEmptyPath

      public void shouldValidateImpexFileSuffixAndReturnFalseForEmptyPath()
      Test checks if given file path is incorrect - when there is no file path.