use of org.incode.module.unittestsupport.dom.repo.FinderInteraction in project estatio by estatio.
the class TaxRateMenu_Test method setup.
@Before
public void setup() {
tax = new Tax();
date = new LocalDate(2013, 4, 1);
taxRateMenu = new TaxRateMenu() {
@Override
protected <T> T firstMatch(Query<T> query) {
finderInteraction = new FinderInteraction(query, FinderMethod.FIRST_MATCH);
return null;
}
@Override
protected List<TaxRate> 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;
}
};
}
use of org.incode.module.unittestsupport.dom.repo.FinderInteraction in project estatio by estatio.
the class IndexValueRepository_Test method setup.
@Before
public void setup() {
index = new Index();
startDate = new LocalDate(2013, 4, 1);
indexValueRepository = new IndexValueRepository() {
@Override
protected <T> T firstMatch(Query<T> query) {
finderInteraction = new FinderInteraction(query, FinderMethod.FIRST_MATCH);
return null;
}
@Override
protected List<IndexValue> 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;
}
};
indexValueRepository.queryResultsCache = mockQueryResultsCache;
}
Aggregations