use of org.estatio.module.lease.dom.occupancy.OccupancyRepository in project estatio by estatio.
the class OccupancyRepository_Test method setup.
@Before
public void setup() {
lease = new Lease();
unit = new Unit();
startDate = new LocalDate(2013, 4, 1);
occupancyRepository = new OccupancyRepository() {
@Override
protected <T> T firstMatch(Query<T> query) {
finderInteraction = new FinderInteraction(query, FinderMethod.FIRST_MATCH);
return null;
}
@Override
protected List<Occupancy> allInstances() {
finderInteraction = new FinderInteraction(null, FinderMethod.ALL_INSTANCES);
return null;
}
@Override
protected <T> List<T> allMatches(Query<T> query) {
finderInteraction = new FinderInteraction(query, FinderMethod.ALL_MATCHES);
return null;
}
};
}
Aggregations