Class ContentMatchers
- java.lang.Object
-
- com.atlassian.confluence.api.testsupport.matchers.model.content.ContentMatchers
-
public final class ContentMatchers extends Object
Hamcrest matchers for asserting against properties on Content
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.hamcrest.Matcher<Content>
createdBy(Person user)
static org.hamcrest.Matcher<Content>
createdBy(String username)
static org.hamcrest.Matcher<Content>
createdDateAfter(org.joda.time.DateTime dateTime)
static org.hamcrest.Matcher<Content>
createdDateBefore(org.joda.time.DateTime dateTime)
static org.hamcrest.Matcher<Content>
hasId(Content content)
static org.hamcrest.Matcher<Content>
hasId(ContentId contentId)
static org.hamcrest.Matcher<Content>
hasSpace(String... spaceKey)
static org.hamcrest.Matcher<Content>
hasStatus(ContentStatus contentStatus)
static org.hamcrest.Matcher<Content>
hasTitle(String title)
static org.hamcrest.Matcher<Content>
hasTitleContaining(String fragment)
static org.hamcrest.Matcher<Content>
hasType(ContentType contentType)
static org.hamcrest.Matcher<ServiceException>
hasValidationError(String key)
static org.hamcrest.Matcher<Content>
lastModifiedAfter(org.joda.time.DateTime dateTime)
static org.hamcrest.Matcher<Content>
lastModifiedBefore(org.joda.time.DateTime dateTime)
-
-
-
Method Detail
-
hasStatus
public static org.hamcrest.Matcher<Content> hasStatus(ContentStatus contentStatus)
-
hasType
public static org.hamcrest.Matcher<Content> hasType(ContentType contentType)
-
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)
-
hasValidationError
public static org.hamcrest.Matcher<ServiceException> hasValidationError(String key)
-
-