use of org.apache.isis.applib.fixturescripts.FixtureScript in project estatio by estatio.
the class BudgetCalculationResultRepository_IntegTest method setupData.
@Before
public void setupData() {
runFixtureScript(new FixtureScript() {
@Override
protected void execute(final ExecutionContext executionContext) {
executionContext.executeChild(this, Budget_enum.OxfBudget2015.builder());
executionContext.executeChild(this, Budget_enum.OxfBudget2016.builder());
executionContext.executeChild(this, Lease_enum.OxfTopModel001Gb.builder());
}
});
propertyOxf = Property_enum.OxfGb.findUsing(serviceRegistry);
budgetsForOxf = budgetRepository.findByProperty(propertyOxf);
budget2015 = budgetRepository.findByPropertyAndStartDate(propertyOxf, Budget_enum.OxfBudget2015.getStartDate());
leaseTopModel = Lease_enum.OxfTopModel001Gb.findUsing(serviceRegistry);
run = wrap(budgetCalculationRunRepository).findOrCreateNewBudgetCalculationRun(leaseTopModel, budget2015, BudgetCalculationType.BUDGETED);
}
use of org.apache.isis.applib.fixturescripts.FixtureScript in project estatio by estatio.
the class InvoiceCalculationService_normalRun_IntegTest method setupData.
// @BeforeClass
// public static void setupData() {
@Before
public void setupData() {
runFixtureScript(new FixtureScript() {
@Override
protected void execute(ExecutionContext ec) {
ec.executeChildren(this, Person_enum.LinusTorvaldsNl, PropertyAndUnitsAndOwnerAndManager_enum.OxfGb, PropertyAndUnitsAndOwnerAndManager_enum.KalNl, LeaseItemForRent_enum.OxfMediaX002Gb, LeaseItemForServiceCharge_enum.OxfMediaX002Gb, LeaseItemForTurnoverRent_enum.OxfMediaX002Gb, LeaseItemForRent_enum.OxfPoison003Gb, LeaseItemForServiceCharge_enum.OxfPoison003Gb, LeaseItemForTurnoverRent_enum.OxfPoison003Gb, LeaseItemForRent_enum.OxfTopModel001Gb, LeaseItemForServiceCharge_enum.OxfTopModel001Gb, LeaseItemForServiceCharge_enum.OxfTopModel001Gb_TA, LeaseItemForServiceChargeBudgeted_enum.OxfTopModel001Gb, LeaseItemForTurnoverRent_enum.OxfTopModel001Gb, LeaseItemForDiscount_enum.OxfTopModel001Gb, LeaseItemForEntryFee_enum.OxfTopModel001Gb, LeaseItemForTax_enum.OxfTopModel001Gb, LeaseItemForDeposit_enum.OxfTopModel001Gb, LeaseItemForMarketing_enum.OxfTopModel001Gb, BreakOption_enum.OxfPoison003Gb_FIXED, BreakOption_enum.OxfPoison003Gb_ROLLING, BreakOption_enum.OxfPoison003Gb_FIXED, BreakOption_enum.OxfPoison003Gb_ROLLING, BreakOption_enum.OxfTopModel001Gb_FIXED, BreakOption_enum.OxfTopModel001Gb_ROLLING, LeaseItemForRent_enum.KalPoison001Nl, Lease_enum.OxfPret004Gb, LeaseItemForRent_enum.OxfMiracl005Gb, LeaseItemForServiceCharge_enum.OxfMiracl005Gb, LeaseItemForTurnoverRent_enum.OxfMiracl005Gb, LeaseItemForDiscount_enum.OxfMiracle005bGb, LeaseItemForDeposit_enum.OxfMiracle005bGb);
}
});
lease = Lease_enum.OxfTopModel001Gb.findUsing(serviceRegistry);
assertThat(lease.getItems().size()).isEqualTo(9);
leaseTopModelRentItem = lease.findItem(LeaseItemType.RENT, VT.ld(2010, 7, 15), VT.bi(1));
leaseTopModelServiceChargeItem = lease.findItem(LeaseItemType.SERVICE_CHARGE, VT.ld(2010, 7, 15), VT.bi(1));
assertThat(leaseTopModelRentItem).isNotNull();
assertThat(leaseTopModelServiceChargeItem).isNotNull();
}
use of org.apache.isis.applib.fixturescripts.FixtureScript in project estatio by estatio.
the class AgreementTypeRepository_IntegTest method setupData.
@Before
public void setupData() {
runFixtureScript(new FixtureScript() {
@Override
protected void execute(ExecutionContext executionContext) {
// 5 oxford leases, 1 kal
executionContext.executeChild(this, Lease_enum.OxfTopModel001Gb.builder());
executionContext.executeChild(this, Lease_enum.OxfMediaX002Gb.builder());
executionContext.executeChild(this, Lease_enum.OxfPoison003Gb.builder());
executionContext.executeChild(this, Lease_enum.OxfPret004Gb.builder());
executionContext.executeChild(this, Lease_enum.OxfMiracl005Gb.builder());
executionContext.executeChild(this, Lease_enum.KalPoison001Nl.builder());
}
});
lease = Lease_enum.OxfTopModel001Gb.findUsing(serviceRegistry);
}
Aggregations