Class ContentMatchers
java.lang.Object
com.atlassian.confluence.api.testsupport.matchers.model.content.ContentMatchers
Hamcrest matchers for asserting against properties on Content
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.hamcrest.Matcher<Content>
static org.hamcrest.Matcher<Content>
static org.hamcrest.Matcher<Content>
createdDateAfter
(OffsetDateTime dateTime) static org.hamcrest.Matcher<Content>
createdDateAfter
(org.joda.time.DateTime dateTime) Deprecated.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>
static org.hamcrest.Matcher<Content>
static org.hamcrest.Matcher<Content>
static org.hamcrest.Matcher<Content>
hasStatus
(ContentStatus contentStatus) static org.hamcrest.Matcher<Content>
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 Details
-
hasId
-
hasId
-
hasStatus
-
hasType
-
hasTitle
-
hasTitleContaining
-
hasSpace
-
lastModifiedAfter
- Since:
- 8.8
-
lastModifiedBefore
- Since:
- 8.8
-
createdDateBefore
- Since:
- 8.8
-
createdDateAfter
- 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)
-
createdBy
-
createdBy
-
hasValidationError
-
createdDateAfter(OffsetDateTime)