use of org.apache.isis.applib.services.fixturespec.FixtureScriptsDefault in project estatio by estatio.
the class AgreementRoleTypeRepository_Test method setup.
@Before
public void setup() {
agreementType = new AgreementType();
agreementRoleTypeRepository = new AgreementRoleTypeRepository() {
@Override
protected <T> T firstMatch(Query<T> query) {
finderInteraction = new FinderInteraction(query, FinderMethod.FIRST_MATCH);
return null;
}
@Override
protected List<AgreementRoleType> 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;
}
};
QueryResultsCache.Control control = new QueryResultsCache.Control();
control.on(new FixturesInstallingEvent(new FixtureScriptsDefault()));
final QueryResultsCache queryResultsCache = new QueryResultsCache() {
{
control = new Control();
}
};
agreementRoleTypeRepository.queryResultsCache = queryResultsCache;
}
Aggregations