private ShouldBeInSameMinuteWindow(Date actual, Date other) { super("%nExpecting:%n <%s>%nto be close to:%n <%s>%nby less than one minute (strictly) but difference was: " + formatTimeDifference(actual, other), actual, other); } }
private ShouldBeInSameSecondWindow(Date actual, Date other) { super("%nExpecting:%n <%s>%nto be close to:%n <%s>%nby less than one second (strictly) but difference was: " + formatTimeDifference(actual, other), actual, other); }
private ShouldBeInSameHourWindow(Date actual, Date other) { super("%nExpecting:%n <%s>%nto be close to:%n <%s>%nby less than one hour (strictly) but difference was: " + formatTimeDifference(actual, other), actual, other); } }
private ShouldBeInSameHourWindow(Date actual, Date other) { super("%nExpecting:%n <%s>%nto be close to:%n <%s>%nby less than one hour (strictly) but difference was: " + formatTimeDifference(actual, other), actual, other); } }
private ShouldBeInSameMinuteWindow(Date actual, Date other) { super("%nExpecting:%n <%s>%nto be close to:%n <%s>%nby less than one minute (strictly) but difference was: " + formatTimeDifference(actual, other), actual, other); } }
private ShouldBeInSameSecondWindow(Date actual, Date other) { super("%nExpecting:%n <%s>%nto be close to:%n <%s>%nby less than one second (strictly) but difference was: " + formatTimeDifference(actual, other), actual, other); }