use of org.apache.isis.applib.fixturescripts.clock.TickingClockFixture in project estatio by estatio.
the class EstatioBaseModule method getRefDataSetupFixture.
@Override
public FixtureScript getRefDataSetupFixture() {
if (refData.get()) {
return null;
}
// else
refData.set(true);
return new FixtureScript() {
@Override
protected void execute(final ExecutionContext executionContext) {
executionContext.executeChild(this, new TickingClockFixture().setDate("2014-05-18"));
executionContext.executeChild(this, new ApplicationTenancy_enum.PersistAll());
// set up 3 estatio roles
executionContext.executeChild(this, new EstatioRolesAndPermissions());
// estatio-admin user with the estatio-admin role + superuser
executionContext.executeChild(this, new EstatioAdmin());
executionContext.executeChild(this, new EstatioAdmin_Has_EstatioSuperuserRole());
// bunch of users with estatio-user role
executionContext.executeChild(this, new EstatioUser());
executionContext.executeChild(this, new EstatioUserInFrance());
executionContext.executeChild(this, new EstatioUserInGreatBritain());
executionContext.executeChild(this, new EstatioUserInItaly());
executionContext.executeChild(this, new EstatioUserInNetherlands());
executionContext.executeChild(this, new EstatioUserInSweden());
}
};
}
Aggregations