[ https://issues.apache.org/jira/browse/ADFFACES-360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Weßendorf updated ADFFACES-360: ---------------------------------------- Fix Version/s: 1.0.0-incubating-core Affects Version/s: 1.0.0-incubating-core > org.apache.myfaces.trinidadinternal.renderkit.RenderKitTestCase: move call to > _initGlobal to Constructor. > --------------------------------------------------------------------------------------------------------- > > Key: ADFFACES-360 > URL: https://issues.apache.org/jira/browse/ADFFACES-360 > Project: MyFaces ADF-Faces > Issue Type: Bug > Affects Versions: 1.0.0-incubating-core > Reporter: Gary Kind > Assigned To: Adam Winer > Fix For: 1.0.0-incubating-core > > Attachments: faces-1_2-070102.patch > > > Currently, the private method _initGlobal tries to get some system properties > and is called from a static block. This effectlively means that these system > properties must be set before any junit tests that extend this class are run. > If they are not set prior to running the junit test (in the environment), an > NPE results. Putting the call to _initGlobal in the constructor delays the > getting of these system properties so that they can set in the extending > class as a static block -- thus the system properties can be set either in > the enviroment, prior to running the test, or in a static block in the > extending class. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.