-
1. Re: how to set parameters in user integration tests
nickarls Jan 14, 2008 4:29 AM (in response to berkay) -
2. Re: how to set parameters in user integration tests
berkay Jan 14, 2008 4:50 AM (in response to berkay)this doesnt works for me
when i print getValue("parentCategory"), null comes.
i am confused. -
3. Re: how to set parameters in user integration tests
abra Jan 14, 2008 7:16 AM (in response to berkay)i'm actually fighting with the same kind of problem. what i want to do is setting the @DataModelSelection with set("#{ataModelSelection}", myObject).
as far as i have understood seam, this should provide myObject for injection in my classes where the @In annotation stands. can someone provide me a hint or have i overlooked something obvious? -
4. Re: how to set parameters in user integration tests
laksu Jan 14, 2008 8:29 AM (in response to berkay)Hi, I am from the same team with berkay.
We followed the suggested solution ot that thread. There, in the code from Seam 2.0.1.CR1 for invodeApplication is:
return application.getExpressionFactory().createMethodExpression(
facesContext.getELContext(), methodExpression, Object.class, new Class[0])
.invoke(facesContext.getELContext(), null);
method binding part is a bit beyond our knowledge so we could not go far. application is a private member of SeamTest and we could not find where it gets initialized in the SeamTest class. Same can be said for facesContext as well. As a result we failed to figure it out.