[ 
https://issues.apache.org/jira/browse/ADFFACES-360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary Kind updated ADFFACES-360:
-------------------------------

    Description: 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.  (was: 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 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.)

> 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
>            Reporter: Gary Kind
>         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.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to