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 Deprecated 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(OffsetDateTime dateTime)
static org.hamcrest.Matcher<Content>
createdDateAfter(org.joda.time.DateTime dateTime)
Deprecated.since 8.8 usecreatedDateAfter(OffsetDateTime)
static org.hamcrest.Matcher<Content>
createdDateBefore(OffsetDateTime dateTime)
static org.hamcrest.Matcher<Content>
createdDateBefore(org.joda.time.DateTime dateTime)
Deprecated.since 8.8 usecreatedDateBefore(OffsetDateTime)
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(OffsetDateTime dateTime)
static org.hamcrest.Matcher<Content>
lastModifiedAfter(org.joda.time.DateTime dateTime)
Deprecated.since 8.8 uselastModifiedAfter(OffsetDateTime)
static org.hamcrest.Matcher<Content>
lastModifiedBefore(OffsetDateTime dateTime)
static org.hamcrest.Matcher<Content>
lastModifiedBefore(org.joda.time.DateTime dateTime)
Deprecated.since 8.8 uselastModifiedBefore(OffsetDateTime)
-
-
-
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(OffsetDateTime dateTime)
- Since:
- 8.8
-
lastModifiedBefore
public static org.hamcrest.Matcher<Content> lastModifiedBefore(OffsetDateTime dateTime)
- Since:
- 8.8
-
createdDateBefore
public static org.hamcrest.Matcher<Content> createdDateBefore(OffsetDateTime dateTime)
- Since:
- 8.8
-
createdDateAfter
public static org.hamcrest.Matcher<Content> createdDateAfter(OffsetDateTime dateTime)
- Since:
- 8.8
-
lastModifiedAfter
@Deprecated public static org.hamcrest.Matcher<Content> lastModifiedAfter(org.joda.time.DateTime dateTime)
Deprecated.since 8.8 uselastModifiedAfter(OffsetDateTime)
-
lastModifiedBefore
@Deprecated public static org.hamcrest.Matcher<Content> lastModifiedBefore(org.joda.time.DateTime dateTime)
Deprecated.since 8.8 uselastModifiedBefore(OffsetDateTime)
-
createdDateBefore
@Deprecated public static org.hamcrest.Matcher<Content> createdDateBefore(org.joda.time.DateTime dateTime)
Deprecated.since 8.8 usecreatedDateBefore(OffsetDateTime)
-
createdDateAfter
@Deprecated public static org.hamcrest.Matcher<Content> createdDateAfter(org.joda.time.DateTime dateTime)
Deprecated.since 8.8 usecreatedDateAfter(OffsetDateTime)
-
hasValidationError
public static org.hamcrest.Matcher<ServiceException> hasValidationError(String key)
-
-