[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Layout Design on server side not testable  XML
Forum Index -> Development
Author Message
hilka

Power User

Joined: 23/11/2007 09:00:08
Messages: 191
Offline

Hello,

since changing the component tree on server side is error-prone and sometimes really tricky, I tried to write some unit tests for this purpose (and to speed up development...).

But there is a problem: Inside the method createBaseComponent the FacesContext is needed, otherwise there is a nullpointer exception.

Do you have any ideas on making these things (more) testable? Can we use some dummy context for testing purpose?

Tobias
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

Hi Tobias,

yes, we changed a bit: if the FacesContext is not available then we switch to a "replacement function"... and output some warning messages...

Will be available with next version.

Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team