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

Struts 2 unit testing using StrutTestCase class

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.5.17
    • Fix Version/s: 2.5.22
    • Component/s: Unit Tests
    • Labels:
    • Flags:
      Important

      Description

      Hello,

      I am facing an issue while trying to write a unit test for an action class. Although i extend StrutsTestCase based on your official documentation, when i run it i get the following error.

       

      Unable to load configuration. - interceptor - jar:file:/C:/Users/vaits/.m2/repository/org/apache/struts/struts2-core/2.5.17/struts2-core-2.5.17.jar!/struts-default.xml:228:127

       

      Could you please consult me  in order to overcome this issue?

       

      Thank you in advance.

        Attachments

        1. stack trace.txt
          1.01 MB
          vaitsis vagias

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              VaitsisVag vaitsis vagias
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified