Class ImportPatchActionTest
java.lang.Object
de.hybris.platform.patches.actions.ImportPatchActionTest
Unit test which is checking updating options for ImpexImportUnit.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()voidTest checks if list of HeaderOption's was added to ImportUnit.voidTest checks if HeaderOption was added to ImportUnit.voidTest checks if HeaderOption with proper macro was added to ImportUnit and if file path was updated.voidTest checks if data file's path was properly changed.voidTest checks if HeaderOption with proper macro was added to ImportUnit and if file path was not changed.voidTest checks if given file path is incorrect - when there is no file path.voidTest checks if given file path is incorrect - suffix is case sensitive.voidTest checks if given file path is correct - suffix is ".impex".
-
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.
-