Allow more complicated server side code assertions
--------------------------------------------------
Key: MYFACESTEST-26
URL: https://issues.apache.org/jira/browse/MYFACESTEST-26
Project: MyFaces Test
Issue Type: New Feature
Components: webapptest
Reporter: Jakob Korherr
Assignee: Jakob Korherr
Currently we can only assert the values of managed bean properties and EL
expressions, but not any other server-side values.
This can be accomplished by introducing a ServerSideCode interface, which
allows the user to execute some code that returns a value or throws an
exception on the server at a given JSF-Phase.
Example:
webappTester.assertThat(new ServerSideCode()
{
public Object execute() throws Exception
{
// do some stuff on the server and return a value
}
}).is("value").after(PhaseId.INVOKE_APPLICATION);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.