Class PageModelToDataRenderingPopulatorTest


  • @UnitTest
    public class PageModelToDataRenderingPopulatorTest
    extends java.lang.Object
    • Field Detail

      • captor

        @Captor
        protected org.mockito.ArgumentCaptor<java.util.Map<java.lang.String,​java.lang.Object>> captor
    • Constructor Detail

      • PageModelToDataRenderingPopulatorTest

        public PageModelToDataRenderingPopulatorTest()
    • Method Detail

      • setUp

        public void setUp()
      • whenPopulatorIsCalled_ThenItPopulatesAllTheRequiredProperties

        public void whenPopulatorIsCalled_ThenItPopulatesAllTheRequiredProperties()
      • whenPopulatorIsCalledThenOtherPropertiesFieldIsPopulated

        public void whenPopulatorIsCalledThenOtherPropertiesFieldIsPopulated()
      • givenDefaultPage_WhenPopulatorIsCalled_ThenItPopulatesThePageAsDefault

        public void givenDefaultPage_WhenPopulatorIsCalled_ThenItPopulatesThePageAsDefault()
      • givenInactiveSlot_WhenPopulatorIsCalled_ThenItPopulatesTheSlotsWithoutTheInactiveOnes

        public void givenInactiveSlot_WhenPopulatorIsCalled_ThenItPopulatesTheSlotsWithoutTheInactiveOnes()
      • makePageDefault

        protected void makePageDefault()
      • setSlotAsInactive

        protected void setSlotAsInactive​(ContentSlotData slotData)
      • setContentSlotActivePeriod

        protected void setContentSlotActivePeriod​(ContentSlotData slotData,
                                                  java.util.Date activeFrom,
                                                  java.util.Date activeUntil)