struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjay (JIRA)" <j...@apache.org>
Subject [jira] [Created] (WW-4392) Unable to get datasource in StrutsTestCase
Date Fri, 22 Aug 2014 17:58:11 GMT
Sanjay created WW-4392:
--------------------------

             Summary: Unable to get datasource in StrutsTestCase
                 Key: WW-4392
                 URL: https://issues.apache.org/jira/browse/WW-4392
             Project: Struts 2
          Issue Type: Task
          Components: Unit Tests
    Affects Versions: 2.3.16.3
         Environment: Windows 7
            Reporter: Sanjay
            Priority: Blocker


I have servletcontextlinstner defined in web.xml. This listener get the datasource from web.xml
and initialise the datasource.

Now, I am trying to create Unit Test case and extending StrutsTestCase.  Here I am getting
datasource as NULL while from browser, application working correctly.

Appreciate if you can help in calling Listner class in testcase or initialise web.xml



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message