Search in sources :

Example 1 with FixtureScript

use of org.apache.isis.applib.fixturescripts.FixtureScript in project estatio by estatio.

the class PartyRelationshipViewService_IntegTest method setupData.

@Before
public void setupData() {
    runFixtureScript(new FixtureScript() {

        @Override
        protected void execute(ExecutionContext executionContext) {
            executionContext.executeChild(this, OrganisationAndComms_enum.TopModelGb.builder());
            executionContext.executeChild(this, Person_enum.GinoVannelliGb.builder());
        }
    });
    org = OrganisationAndComms_enum.TopModelGb.findUsing(serviceRegistry);
    person = partyRepository.findPartyByReference(Person_enum.GinoVannelliGb.getRef());
}
Also used : FixtureScript(org.apache.isis.applib.fixturescripts.FixtureScript) Before(org.junit.Before)

Example 2 with FixtureScript

use of org.apache.isis.applib.fixturescripts.FixtureScript in project estatio by estatio.

the class FixedAssetFinancialAccountRepository_IntegTest method setupData.

@Before
public void setupData() {
    runFixtureScript(new FixtureScript() {

        @Override
        protected void execute(ExecutionContext executionContext) {
            executionContext.executeChild(this, PropertyAndUnitsAndOwnerAndManager_enum.OxfGb.builder());
            executionContext.executeChild(this, BankAccount_enum.Oxford.builder());
            executionContext.executeChild(this, BankAccountFaFa_enum.Oxford.builder());
        }
    });
    owner = PropertyAndUnitsAndOwnerAndManager_enum.OxfGb.getOwner_d().findUsing(serviceRegistry);
}
Also used : FixtureScript(org.apache.isis.applib.fixturescripts.FixtureScript) Before(org.junit.Before)

Example 3 with FixtureScript

use of org.apache.isis.applib.fixturescripts.FixtureScript in project estatio by estatio.

the class OccupancyRepository_IntegTest method setupData.

@Before
public void setupData() {
    runFixtureScript(new FixtureScript() {

        @Override
        protected void execute(ExecutionContext executionContext) {
            executionContext.executeChild(this, LeaseItemForRent_enum.OxfTopModel001Gb.builder());
            executionContext.executeChild(this, LeaseItemForServiceCharge_enum.OxfTopModel001Gb.builder());
            executionContext.executeChild(this, LeaseItemForServiceCharge_enum.OxfTopModel001Gb_TA.builder());
            executionContext.executeChild(this, LeaseItemForServiceChargeBudgeted_enum.OxfTopModel001Gb.builder());
            executionContext.executeChild(this, LeaseItemForTurnoverRent_enum.OxfTopModel001Gb.builder());
            executionContext.executeChild(this, LeaseItemForDiscount_enum.OxfTopModel001Gb.builder());
            executionContext.executeChild(this, LeaseItemForEntryFee_enum.OxfTopModel001Gb.builder());
            executionContext.executeChild(this, LeaseItemForTax_enum.OxfTopModel001Gb.builder());
            executionContext.executeChild(this, LeaseItemForDeposit_enum.OxfTopModel001Gb.builder());
            executionContext.executeChild(this, LeaseItemForMarketing_enum.OxfTopModel001Gb.builder());
        }
    });
    lease = Lease_enum.OxfTopModel001Gb.findUsing(serviceRegistry);
    unit = unitRepository.findUnitByReference(Property_enum.OxfGb.unitRef("001"));
}
Also used : FixtureScript(org.apache.isis.applib.fixturescripts.FixtureScript) Before(org.junit.Before)

Example 4 with FixtureScript

use of org.apache.isis.applib.fixturescripts.FixtureScript in project estatio by estatio.

the class CommunicationChannelContributions_IntegTest method setUp.

@Before
public void setUp() throws Exception {
    runFixtureScript(new FixtureScript() {

        @Override
        protected void execute(ExecutionContext executionContext) {
            executionContext.executeChild(this, OrganisationAndComms_enum.HelloWorldGb.builder());
        }
    });
    party = OrganisationAndComms_enum.HelloWorldGb.findUsing(serviceRegistry);
}
Also used : FixtureScript(org.apache.isis.applib.fixturescripts.FixtureScript) Before(org.junit.Before)

Example 5 with FixtureScript

use of org.apache.isis.applib.fixturescripts.FixtureScript in project estatio by estatio.

the class BankMandateRepository_IntegTest method setupData.

@Before
public void setupData() {
    runFixtureScript(new FixtureScript() {

        @Override
        protected void execute(ExecutionContext executionContext) {
            executionContext.executeChild(this, Lease_enum.OxfTopModel001Gb.builder());
            executionContext.executeChild(this, BankAccount_enum.TopModelGb.builder());
        }
    });
    lease = Lease_enum.OxfTopModel001Gb.findUsing(serviceRegistry);
}
Also used : FixtureScript(org.apache.isis.applib.fixturescripts.FixtureScript) Before(org.junit.Before)

Aggregations

FixtureScript (org.apache.isis.applib.fixturescripts.FixtureScript)18 Before (org.junit.Before)16 DocumentTypesAndTemplatesForCapexFixture (org.estatio.module.capex.seed.DocumentTypesAndTemplatesForCapexFixture)4 CapexChargeHierarchyXlsxFixture (org.estatio.module.charge.fixtures.incoming.builders.CapexChargeHierarchyXlsxFixture)3 TickingClockFixture (org.apache.isis.applib.fixturescripts.clock.TickingClockFixture)1 Blob (org.apache.isis.applib.value.Blob)1 PersonAndRolesBuilder (org.estatio.module.asset.fixtures.person.builders.PersonAndRolesBuilder)1 EstatioRolesAndPermissions (org.estatio.module.base.fixtures.security.perms.personas.EstatioRolesAndPermissions)1 EstatioAdmin_Has_EstatioSuperuserRole (org.estatio.module.base.fixtures.security.userrole.personas.EstatioAdmin_Has_EstatioSuperuserRole)1 EstatioAdmin (org.estatio.module.base.fixtures.security.users.personas.EstatioAdmin)1 EstatioUser (org.estatio.module.base.fixtures.security.users.personas.EstatioUser)1 EstatioUserInFrance (org.estatio.module.base.fixtures.security.users.personas.EstatioUserInFrance)1 EstatioUserInGreatBritain (org.estatio.module.base.fixtures.security.users.personas.EstatioUserInGreatBritain)1 EstatioUserInItaly (org.estatio.module.base.fixtures.security.users.personas.EstatioUserInItaly)1 EstatioUserInNetherlands (org.estatio.module.base.fixtures.security.users.personas.EstatioUserInNetherlands)1 EstatioUserInSweden (org.estatio.module.base.fixtures.security.users.personas.EstatioUserInSweden)1 Person (org.estatio.module.party.dom.Person)1 ApplicationTenancy_enum (org.incode.module.apptenancy.fixtures.enums.ApplicationTenancy_enum)1 Document (org.incode.module.document.dom.impl.docs.Document)1 LocalDate (org.joda.time.LocalDate)1