incubator-adffaces-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Winer (JIRA)" <adffaces-iss...@incubator.apache.org>
Subject [jira] Resolved: (ADFFACES-360) org.apache.myfaces.trinidadinternal.renderkit.RenderKitTestCase: move call to _initGlobal to Constructor.
Date Tue, 23 Jan 2007 23:26:49 GMT

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

Adam Winer resolved ADFFACES-360.
---------------------------------

    Resolution: Fixed
      Assignee: Adam Winer

Checked in patch on trunk. 

> 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
>         Assigned To: Adam Winer
>         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.


Mime
View raw message