@Test public void fillModelShouldNotAddAvailabilityAttributeForWorldpayAPMComponent() { testObj.fillModel(requestMock, modelMock, componentMock); verify(apmAvailabilityFacadeMock, never()).isAvailable(any(WorldpayAPMConfigurationModel.class)); }
@Override protected void fillModel(final HttpServletRequest request, final Model model, final AbstractCMSComponentModel component) { invokeSuperFillModel(request, model, component); if (component instanceof WorldpayAPMComponentModel) { final WorldpayAPMConfigurationModel apmConfiguration = ((WorldpayAPMComponentModel) component).getApmConfiguration(); model.addAttribute(IS_AVAILABLE, apmAvailabilityFacade.isAvailable(apmConfiguration)); } }
WorldpayAPMComponentController extends GenericCMSAddOnComponentController { @Override protected void fillModel(final HttpServletRequest request, final Model model, final AbstractCMSComponentModel component) { invokeSuperFillModel(request, model, component); if (component instanceof WorldpayAPMComponentModel) { final WorldpayAPMConfigurationModel apmConfiguration = ((WorldpayAPMComponentModel) component).getApmConfiguration(); model.addAttribute(IS_AVAILABLE, apmAvailabilityFacade.isAvailable(apmConfiguration)); } } }
WorldpayAPMComponentController extends GenericCMSAddOnComponentController { @Override protected void fillModel(final HttpServletRequest request, final Model model, final AbstractCMSComponentModel component) { invokeSuperFillModel(request, model, component); if (component instanceof WorldpayAPMComponentModel) { final WorldpayAPMConfigurationModel apmConfiguration = ((WorldpayAPMComponentModel) component).getApmConfiguration(); model.addAttribute(IS_AVAILABLE, apmAvailabilityFacade.isAvailable(apmConfiguration)); } }  }
WorldpayAPMComponentController extends GenericCMSAddOnComponentController { @Override protected void fillModel(final HttpServletRequest request, final Model model, final AbstractCMSComponentModel component) { invokeSuperFillModel(request, model, component); if (component instanceof WorldpayAPMComponentModel) { final WorldpayAPMConfigurationModel apmConfiguration = ((WorldpayAPMComponentModel) component).getApmConfiguration(); model.addAttribute(IS_AVAILABLE, apmAvailabilityFacade.isAvailable(apmConfiguration)); } }   }
WorldpayAPMComponentController extends GenericCMSAddOnComponentController { @Override protected void fillModel(final HttpServletRequest request, final Model model, final AbstractCMSComponentModel component) { invokeSuperFillModel(request, model, component); if (component instanceof WorldpayAPMComponentModel) { final WorldpayAPMConfigurationModel apmConfiguration = ((WorldpayAPMComponentModel) component).getApmConfiguration(); model.addAttribute(IS_AVAILABLE, apmAvailabilityFacade.isAvailable(apmConfiguration)); } }    }