use of org.estatio.module.asset.dom.PropertyRepository in project estatio by estatio.
the class PropertyMenu2_Test method setup.
@Before
public void setup() {
propertyRepository = new PropertyRepository() {
@Override
protected <T> T uniqueMatch(Query<T> query) {
finderInteraction = new FinderInteraction(query, FinderMethod.UNIQUE_MATCH);
return (T) new Property();
}
@Override
protected List<Property> 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;
}
};
propertyMenu = new PropertyMenu();
propertyMenu.propertyRepository = propertyRepository;
}
Aggregations