>From: Mohan Radhakrishnan <[EMAIL PROTECTED]> > > > Yes. I did that too. Actually if I use > root.processDecodes(facesContext); > I get this exception. > > Actually I am trying to run all the phases including Apply Request Values > phase( Create form etc. ). The idea is to finally get > the value in the managed bean. >
Yeah, I'm not surprised that you are seeing an exception in the form's decode. There's something missing in the request params that the form expects or maybe something is not implemented in the mock view handler. Or, it could be that the renderers are not registered. protected void setUp() throws Exception { super.setUp(); helper = new ConverterHelper(); parser = new ConfigParser(); URL[] urls = parser.getPlatformURLs(); parser.parse(urls); } What is line 707 trying to do in UIComponentBase of your runtime impl? The test framework is better for testing managed bean callback logic versus component behaviors. If you find something that needs implemented in the mock classes please create a JIRA ticket. > 1) > testSetUpDataBean(com.test.mock.PinValidatorTestCase)java.lang.NullPointerExcept > > ion > at > javax.faces.component.UIComponentBase.decode(UIComponentBase.java:707) > at javax.faces.component.UIForm.processDecodes(UIForm.java:128) > at > javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:922) > > at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:341) > at > com.test.mock.PinValidatorTestCase.testSetUpDataBean(PinValidatorTestCase.java:6 > > 9) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav > > a:60) > at > com.test.mock.PinValidatorTestCase.main(PinValidatorTestCase.java:154) > > Thanks, > Mohan > -- > View this message in context: > http://www.nabble.com/Shale-test-framework---Update-model-bean-tf4607288.html#a1 > > 3157454 > Sent from the Shale - User mailing list archive at Nabble.com. >