use of org.estatio.module.asset.dom.FixedAssetForTesting in project estatio by estatio.
the class LandRegister_title_Test method setUp.
@Before
public void setUp() throws Exception {
cr = new LandRegister();
cr.setContainer(mockContainer);
subject = new FixedAssetForTesting();
type = new FixedAssetRegistrationType();
cr.setType(type);
cr.setSubject(subject);
}
use of org.estatio.module.asset.dom.FixedAssetForTesting in project estatio by estatio.
the class LeaseRepository_Test method setup.
@Before
public void setup() {
asset = new FixedAssetForTesting();
property = new Property();
leaseRepository = new LeaseRepository() {
@Override
protected <T> T uniqueMatch(Query<T> query) {
finderInteraction = new FinderInteraction(query, FinderMethod.UNIQUE_MATCH);
return (T) new Lease();
}
@Override
protected List<Lease> 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;
}
};
leaseRepository.clockService = new ClockService();
}
Aggregations