You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org> on 2010/09/09 15:06:32 UTC

[jira] Created: (MYFACESTEST-26) Allow more complicated server side code assertions

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.


[jira] Resolved: (MYFACESTEST-26) Allow more complicated server side code assertions

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACESTEST-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakob Korherr resolved MYFACESTEST-26.
--------------------------------------

    Resolution: Fixed

> 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.