Class DateContentMatcher
- java.lang.Object
-
- org.hamcrest.BaseMatcher<T>
-
- org.hamcrest.TypeSafeMatcher<Content>
-
- com.atlassian.confluence.api.testsupport.matchers.model.content.DateContentMatcher
-
- All Implemented Interfaces:
org.hamcrest.Matcher<Content>
,org.hamcrest.SelfDescribing
public abstract class DateContentMatcher extends org.hamcrest.TypeSafeMatcher<Content>
- See Also:
ContentMatchers
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DateContentMatcher.Direction
-
Constructor Summary
Constructors Constructor Description DateContentMatcher(OffsetDateTime dateTime, DateContentMatcher.Direction direction, String fieldName)
DateContentMatcher(org.joda.time.DateTime dateTime, DateContentMatcher.Direction direction, String fieldName)
Deprecated.since 8.6
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
describeMismatchSafely(Content item, org.hamcrest.Description mismatchDescription)
void
describeTo(org.hamcrest.Description description)
protected abstract OffsetDateTime
getDateTimeForContent(Content content)
protected boolean
matchesSafely(Content content)
-
-
-
Constructor Detail
-
DateContentMatcher
public DateContentMatcher(OffsetDateTime dateTime, DateContentMatcher.Direction direction, String fieldName)
- Since:
- 8.6
-
DateContentMatcher
@Deprecated public DateContentMatcher(org.joda.time.DateTime dateTime, DateContentMatcher.Direction direction, String fieldName)
Deprecated.since 8.6
-
-
Method Detail
-
matchesSafely
protected boolean matchesSafely(Content content)
- Specified by:
matchesSafely
in classorg.hamcrest.TypeSafeMatcher<Content>
-
getDateTimeForContent
protected abstract OffsetDateTime getDateTimeForContent(Content content)
-
describeTo
public void describeTo(org.hamcrest.Description description)
-
-