externalContext.getRequestParameterMap().put("ABYBC", "ABYBC");
toggleControl.decode(facesContext);
togglePanel.decode(facesContext);
MockViewRoot mockViewRoot = (MockViewRoot) facesContext.getViewRoot();
EventsQueue events = mockViewRoot.getEventsQueue(PhaseId.INVOKE_APPLICATION);
assertNotNull(events);
assertEquals(0, events.size());
togglePanel.setSwitchType(UITogglePanel.AJAX_METHOD);
externalContext.getRequestParameterMap().put(
togglePanel.getClientId(facesContext), "ABYBC");
externalContext.getRequestParameterMap().put(
toggleControl.getClientId(facesContext), "ABYBC");
toggleControl.decode(facesContext);
togglePanel.decode(facesContext);
mockViewRoot = (MockViewRoot) facesContext.getViewRoot();
events = mockViewRoot.getEventsQueue(PhaseId.INVOKE_APPLICATION);
assertNotNull(events);
assertEquals(0, events.size());
}