[
https://issues.apache.org/jira/browse/ISIS-1719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dan Haywood reassigned ISIS-1719:
---------------------------------
Assignee: Dan Haywood
> QueryResultsCache should be disable when running fixture scripts.
> -----------------------------------------------------------------
>
> Key: ISIS-1719
> URL: https://issues.apache.org/jira/browse/ISIS-1719
> Project: Isis
> Issue Type: Improvement
> Affects Versions: 1.15.0
> Reporter: Dan Haywood
> Assignee: Dan Haywood
> Priority: Minor
> Fix For: 1.15.1
>
>
> This is currently done if invoked via the FixtureScripts menu service, but
> not automatically for integration tests.
> Suggest that this can be disabled, in case it starts breaking tests for folk.
> see (IsisSessionFactory):
> {code}
> @Programmatic
> public void constructServices() {
> ...
> //
> // installFixturesIfRequired
> //
> final FixturesInstallerFromConfiguration fixtureInstaller =
> new FixturesInstallerFromConfiguration(this);
> fixtureInstaller.installFixtures();
> ...
>
> }
> {code}
> and (in FixtureScriptsDefault):
> {code}
> public List<FixtureResult> runFixtureScript(
> final FixtureScript fixtureScript,
> @ParameterLayout(
> named = "Parameters",
> describedAs =
> "Script-specific parameters (if any). The format
> depends on the script implementation (eg key=value, CSV, JSON, XML etc)",
> multiLine = 10)
> @Parameter(optionality = Optionality.OPTIONAL)
> final String parameters) {
> try {
> eventBusService.post(new FixturesInstallingEvent(this));
> return super.runFixtureScript(fixtureScript, parameters);
> } finally {
> eventBusService.post(new FixturesInstalledEvent(this));
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)