// only phase PROCESS_VALIDATIONS must have been called
// NOTE that there are also assertions in ValidationPhaseListener
List<Boolean> assertList = Arrays.asList(false, false, true, false, false, false);
tester.assertThat(new ServerSideCode()
{
public Object execute() throws Exception
{
FacesContext facesContext = FacesContext.getCurrentInstance();
Map<String, Object> applicationMap = facesContext
.getExternalContext().getApplicationMap();
return applicationMap.get(ValidationPhaseListener.BEFORE_CALLED);
}
}).is(assertList).before(PhaseId.RESTORE_VIEW);
tester.assertThat(new ServerSideCode()
{
public Object execute() throws Exception
{
FacesContext facesContext = FacesContext.getCurrentInstance();