com.stratelia.webactiv.almanach.model
Class EventOccurrenceMatcher

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<EventOccurrence>
          extended by com.stratelia.webactiv.almanach.model.EventOccurrenceMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<EventOccurrence>, org.hamcrest.SelfDescribing

public class EventOccurrenceMatcher
extends org.hamcrest.TypeSafeMatcher<EventOccurrence>

A matcher of event occurrences generated during the tests.


Method Summary
static
<T> org.hamcrest.Matcher<EventOccurrence>
anOccurrenceOfEvent(String eventId, String startIso8601Date, String endIso8601Date)
           
 void describeTo(org.hamcrest.Description description)
           
static String endingAt(String iso8601Date)
           
protected  boolean matchesSafely(EventOccurrence actual)
           
static String startingAt(String iso8601Date)
           
 
Methods inherited from class org.hamcrest.TypeSafeMatcher
describeMismatch, describeMismatchSafely, 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
 

Method Detail

matchesSafely

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

describeTo

public void describeTo(org.hamcrest.Description description)

anOccurrenceOfEvent

public static <T> org.hamcrest.Matcher<EventOccurrence> anOccurrenceOfEvent(String eventId,
                                                                            String startIso8601Date,
                                                                            String endIso8601Date)
                                                                 throws Exception
Throws:
Exception

startingAt

public static String startingAt(String iso8601Date)

endingAt

public static String endingAt(String iso8601Date)


Copyright © 2016 Silverpeas. All Rights Reserved.