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 classDateContentMatcher.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 voiddescribeMismatchSafely(Content item, org.hamcrest.Description mismatchDescription)voiddescribeTo(org.hamcrest.Description description)protected abstract OffsetDateTimegetDateTimeForContent(Content content)protected booleanmatchesSafely(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:
 matchesSafelyin classorg.hamcrest.TypeSafeMatcher<Content>
 
- 
getDateTimeForContent
protected abstract OffsetDateTime getDateTimeForContent(Content content)
 
- 
describeTo
public void describeTo(org.hamcrest.Description description)
 
 - 
 
 -