protected void verifyCreateParameterQueryInvocations() { Map<String, Date> startDateParameters = getCompleteCreateDateQueryParameters(); verify(mockedQuery).createdAfter(startDateParameters.get("createdAfter")); verify(mockedQuery).createdBefore(startDateParameters.get("createdBefore")); verify(mockedQuery).list(); }
query.createdBefore(createdBefore);
query.createdBefore(createdBefore);
assertCount(0, historicQuery().createdAfter(ended)); assertCount(0, historicQuery().createdBefore(beforeCreate)); assertCount(6, historicQuery().createdBefore(ended)); assertCount(0, historicQuery().createdBefore(beforeCreate).createdAfter(ended));
query.createdBefore(createdBefore);
assertCount(0, historicQuery().createdAfter(ended)); assertCount(0, historicQuery().createdBefore(beforeCreate)); assertCount(6, historicQuery().createdBefore(ended)); assertCount(0, historicQuery().createdBefore(beforeCreate).createdAfter(ended));