Class ContentMatchers


  • public final class ContentMatchers
    extends Object
    Hamcrest matchers for asserting against properties on Content
    • Method Detail

      • hasId

        public static org.hamcrest.Matcher<Content> hasId​(ContentId contentId)
      • hasId

        public static org.hamcrest.Matcher<Content> hasId​(Content content)
      • hasStatus

        public static org.hamcrest.Matcher<Content> hasStatus​(ContentStatus contentStatus)
      • hasType

        public static org.hamcrest.Matcher<Content> hasType​(ContentType contentType)
      • hasTitle

        public static org.hamcrest.Matcher<Content> hasTitle​(String title)
      • hasTitleContaining

        public static org.hamcrest.Matcher<Content> hasTitleContaining​(String fragment)
      • hasSpace

        public static org.hamcrest.Matcher<Content> hasSpace​(String... spaceKey)
      • lastModifiedAfter

        public static org.hamcrest.Matcher<Content> lastModifiedAfter​(org.joda.time.DateTime dateTime)
      • lastModifiedBefore

        public static org.hamcrest.Matcher<Content> lastModifiedBefore​(org.joda.time.DateTime dateTime)
      • createdDateBefore

        public static org.hamcrest.Matcher<Content> createdDateBefore​(org.joda.time.DateTime dateTime)
      • createdDateAfter

        public static org.hamcrest.Matcher<Content> createdDateAfter​(org.joda.time.DateTime dateTime)
      • createdBy

        public static org.hamcrest.Matcher<Content> createdBy​(Person user)
      • createdBy

        public static org.hamcrest.Matcher<Content> createdBy​(String username)
      • hasValidationError

        public static org.hamcrest.Matcher<ServiceException> hasValidationError​(String key)