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

TestCase for StrutsJUnit4TestCase

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.3.1
    • Component/s: None
    • Labels:
      None
    • Flags:
      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
          Christian Grobmeier

          Activity

            People

            • Assignee:
              maurizio.cucchiara Maurizio Cucchiara
              Reporter:
              cgrobmeier Christian Grobmeier

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Issue deployment