Class ImportPatchActionTest
- java.lang.Object
-
- de.hybris.platform.patches.actions.ImportPatchActionTest
-
@UnitTest public class ImportPatchActionTest extends java.lang.Object
Unit test which is checking updating options for ImpexImportUnit.
-
-
Constructor Summary
Constructors Constructor Description ImportPatchActionTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidshouldAddHeaderOptionsToImportUnit()Test checks if list of HeaderOption's was added to ImportUnit.voidshouldAddHeaderOptionToImportUnit()Test checks if HeaderOption was added to ImportUnit.voidshouldUpdatedHeaderOptionsWithLanguage()Test checks if HeaderOption with proper macro was added to ImportUnit and if file path was updated.voidshouldUpdateFilePathWithGivenSuffix()Test checks if data file's path was properly changed.voidshouldUpdateOnlyHeaderOptionsWithLanguage()Test checks if HeaderOption with proper macro was added to ImportUnit and if file path was not changed.voidshouldValidateImpexFileSuffixAndReturnFalseForEmptyPath()Test checks if given file path is incorrect - when there is no file path.voidshouldValidateImpexFileSuffixAndReturnFalseForIncorrectSuffix()Test checks if given file path is incorrect - suffix is case sensitive.voidshouldValidateImpexFileSuffixAndReturnTrueForCorrectSuffix()Test checks if given file path is correct - suffix is ".impex".
-
-
-
Method Detail
-
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.
-
-