This content has been marked as final.
Show 2 replies
-
1. Re: Creating an EL expression in a Seam unit test
germanescobar Mar 5, 2010 9:57 PM (in response to trappa)If you are using ComponentTest, FacesRequest or NonFacesRequest for your test, you can call the getValue() method to evaluate an EL expression. For example:
... new ComponentTest() { @Override protected void testComponents() throws Exception { User user = (User) getValue("#{user}"); ... } }.run(); ...
If you don't know what I'm talking about, I'd suggest you take a look at the documentation first.
-
2. Re: Creating an EL expression in a Seam unit test
trappa Mar 5, 2010 10:34 PM (in response to trappa)Sorry, but I am not trying to evaluate an EL expression! I want to create a javax.el.Expression object in a seam unit test (and not an integration test)
Actually, I am trying to create an ExtendedFilterField with this constructor
ExtendedFilterField(javax.el.Expression expression, java.lang.String filterValue)
can anyone help ???