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

JUnit 4 StrutsTestCase

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.2.3
    • Unit Tests
    • None
    • any

    Description

      I modified the XWorkTestCase and StrutsTestCase to be compatible with JUnit 4. The update is simple : XWorkTestCase no longer extends TestCase and change the setUp and tearDown methods from protected to public. Also add @Before to setUp methods and @After to tearDown. This has worked out well for us and would like to contribute back.

      Attachments

        1. XWorkTestCase2.java
          3 kB
          Daniel Henry
        2. StrutsTestCase2.java
          2 kB
          Daniel Henry

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              danhenry00 Daniel Henry
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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