I think in JSF 1.1 you have to get the value from a ValueBinding. See
below.
@Test
public void test1 {
ValueBinding binding = facesContext.getApplication
().createValueBinding(#{someBean.prop[0]}};
String val = (String) binding.getValue(facesContext);
assertEquals(val, M);
}
Or
Currently, I am only using the Shale Test framework.
Best,
--Chris
On Feb 2, 2008, at 6:44 AM, samju wrote:
I just want to check how many user, Companies, etc. are using
Shale. thanks
For your feedback in advance!
Sam
--
View this message in context: http://www.nabble.com/Statistic-
Hi Folks,
I am using shale-test for developing my JSF unit tests. I noticed in
the output of my tests some odd output (Ex: descriptor
(class=some.package.and.class name=someName). I tracked this down to
when I create a ValueBinding and retrieve a value using the getValue
() method. The
Disregard this message. I received a mailer daemon on my original
message. Sorry for the double post.
--Chris
On Oct 25, 2007, at 2:19 PM, Chris Keefer wrote:
Hello,
I am trying to add a managed bean to the Mock Faces Context that
will be used in my unit test. My test class extends
Hello,
I am trying to add a managed bean to the Mock Faces Context that will
be used in my unit test. My test class extends AbstractJsfTestCase.
My setUp method is the following:
public void setUp() throws Exception {
super.setUp();
// add managed bean
_factory =
Hello,
I am trying to add a managed bean to the Mock Faces Context that will
be used in my unit test. My test class extends AbstractJsfTestCase.
My setUp method is the following:
public void setUp() throws Exception {
super.setUp();
// add managed bean
_factory =