Class ComponentRollbackConverterTest
java.lang.Object
de.hybris.platform.cms2.version.converter.rollback.impl.ComponentRollbackConverterTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidgivenSharedComponent_WhenRollbackItemIsCalled_ThenItReplacesTheComponentWithACloneInTheCurrentPage()voidsetUp()protected voidsetUpVersionedSlot(String slotUid, ItemModel versionedSlot) protected void
-
Constructor Details
-
ComponentRollbackConverterTest
public ComponentRollbackConverterTest()
-
-
Method Details
-
setUp
public void setUp() -
setUpVersionPayload
protected void setUpVersionPayload() -
setUpVersionedSlot
-
givenComponentCannotBeVersioned_WhenRollbackItemIsCalled_ThenItThrowsAnItemRollbackException
public void givenComponentCannotBeVersioned_WhenRollbackItemIsCalled_ThenItThrowsAnItemRollbackException() throws ItemRollbackException- Throws:
ItemRollbackException
-
givenComponentNotVersionedWithPage_WhenRollbackItemIsCalled_ThenItReturnsTheOriginalComponent
public void givenComponentNotVersionedWithPage_WhenRollbackItemIsCalled_ThenItReturnsTheOriginalComponent() throws ItemRollbackException- Throws:
ItemRollbackException
-