Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-10509

Add ability to check that attribute does not exist in Spring MVC test framework

    Details

    • Last commented by a User:
      true

      Description

      It would be useful to have the ability to check that an attribute does not exist in the Spring MVC test framework.

      Currently ModelResultMatchers has a method attributeExists(). I propose adding a new method attributeDoesNotExist().

      Alternatively, expect(model().attribute("attribute", null)) should pass when the attribute is not available, but it currently fails with a NullPointerException instead.

        Attachments

          Activity

            People

            • Assignee:
              rstoya05-aop Rossen Stoyanchev
              Reporter:
              pioter Piotr Jagielski
              Last updater:
              Spring Issuemaster
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                26 weeks ago