Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4392

Unable to get datasource in StrutsTestCase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.3.16.3
    • None
    • Unit Tests
    • None
    • Windows 7

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            sanjaye218 Sanjay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: