com.atlassian.confluence.api.testsupport.matchers.model.content
Class DateContentMatcher

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<Content>
          extended by 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
protected static class DateContentMatcher.Direction
           
 
Constructor Summary
DateContentMatcher(org.joda.time.DateTime dateTime, DateContentMatcher.Direction direction, String fieldName)
           
 
Method Summary
protected  void describeMismatchSafely(Content item, org.hamcrest.Description mismatchDescription)
           
 void describeTo(org.hamcrest.Description description)
           
protected abstract  org.joda.time.DateTime getDateTimeForContent(Content content)
           
protected  boolean matchesSafely(Content content)
           
 
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, matches
 
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateContentMatcher

public DateContentMatcher(org.joda.time.DateTime dateTime,
                          DateContentMatcher.Direction direction,
                          String fieldName)
Method Detail

matchesSafely

protected boolean matchesSafely(Content content)
Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<Content>

getDateTimeForContent

protected abstract org.joda.time.DateTime getDateTimeForContent(Content content)

describeTo

public void describeTo(org.hamcrest.Description description)

describeMismatchSafely

protected void describeMismatchSafely(Content item,
                                      org.hamcrest.Description mismatchDescription)
Overrides:
describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<Content>


Copyright © 2003–2015 Atlassian. All rights reserved.