Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1054

Not able to pass an empty string as appName to PageTester

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2, 5.1.0.5
    • Fix Version/s: 5.2.0
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      On http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/test/PageTester.html it states that one can pass in an empty string for appName to PageTester(appPackage, appName) or PageTester(appPackage, appName, contextPath, moduleClasses).

      Doing so causes an IllegalArgumentException:

      java.lang.IllegalArgumentException: Parameter appName was null or contained only whitespace.
      at org.apache.tapestry5.ioc.internal.util.Defense.notBlank(Defense.java:59)
      at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:92)
      at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:75)

        Attachments

          Activity

            People

            • Assignee:
              ulrich.staerk Ulrich Stärk
              Reporter:
              snscaimito Stephan Schwab
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: