You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2017/09/18 09:07:00 UTC
[jira] [Resolved] (ISIS-1719) QueryResultsCache should be disable
when running fixture scripts.
[ https://issues.apache.org/jira/browse/ISIS-1719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Haywood resolved ISIS-1719.
-------------------------------
Resolution: Fixed
> 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)