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

TestCase for StrutsJUnit4TestCase

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.1
    • 2.3.1
    • None
    • None
    • Patch

    Description

      Attached is a patch for StrutsJUnit4TestCase. It is a testcase for the improved testcase implementation

      Just two notes:

      #1: i have made two todos - for some reason the action does return INPUT instead of SUCCESS. This is for an elder testcase too. Not sure were this comes from

      #2: I have seen a few exceptions (from the other testcases too) which I do not know where it comes from:

      2011-08-10 13:12:40,363 WARN [MockServletContext.java:298] : Couldn't determine real path of resource class path resource [template_de.ftl]
      java.io.FileNotFoundException: class path resource [template_de.ftl] cannot be resolved to URL because it does not exist
      at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:179)
      at org.springframework.core.io.AbstractFileResolvingResource.getFile(AbstractFileResolvingResource.java:48)
      at org.springframework.mock.web.MockServletContext.getRealPath(MockServletContext.java:295)
      at freemarker.cache.WebappTemplateLoader.findTemplateSource(WebappTemplateLoader.java:128)
      at freemarker.cache.MultiTemplateLoader.findTemplateSource(MultiTemplateLoader.java:111)

      Attachments

        1. patch.txt
          5 kB
          cgrobmeier

        Activity

          People

            maurizio.cucchiara Maurizio Cucchiara
            grobmeier Christian Grobmeier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 10m
                10m
                Remaining:
                Remaining Estimate - 10m
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified