use of org.estatio.module.asset.dom.role.FixedAssetRoleRepository in project estatio by estatio.
the class FixedAssetRoleRepository_Test method setup.
@Before
public void setup() {
asset = new FixedAssetForTesting();
party = new PartyForTesting();
type = FixedAssetRoleTypeEnum.ASSET_MANAGER;
startDate = new LocalDate(2013, 1, 4);
endDate = new LocalDate(2013, 2, 5);
fixedAssetRoleRepository = new FixedAssetRoleRepository() {
@Override
protected <T> T firstMatch(Query<T> query) {
finderInteraction = new FinderInteraction(query, FinderMethod.FIRST_MATCH);
return null;
}
@Override
protected List<FixedAssetRole> 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