You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Kevin Meyer (Resolved) (JIRA)" <ji...@apache.org> on 2011/12/10 15:49:40 UTC

[jira] [Resolved] (ISIS-149) Update IsisTestRunner to accept annotations to override Persister and Authenticator

     [ https://issues.apache.org/jira/browse/ISIS-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Meyer resolved ISIS-149.
------------------------------

    Resolution: Fixed

Documentation updated
                
> Update IsisTestRunner to accept annotations to override Persister and Authenticator
> -----------------------------------------------------------------------------------
>
>                 Key: ISIS-149
>                 URL: https://issues.apache.org/jira/browse/ISIS-149
>             Project: Isis
>          Issue Type: New Feature
>          Components: Viewer: JUnit
>    Affects Versions: 0.1.2-incubating
>            Reporter: Kevin Meyer
>            Assignee: Kevin Meyer
>            Priority: Minor
>             Fix For: 0.2.0-incubating
>
>
> As per email[1], update IsisTestRunner
> The @Persistor annotation needs to specify an installer that overrides the desired installer:
> public class SqlPersistorInstallerWithinJunit extends SqlPersistorInstaller {
>     /**
>      * Returns a {@link DomainObjectContainerHeadlessViewer}.
>      */
>     @Override
>     protected DomainObjectContainer createContainer(final IsisConfiguration configuration) {
>         return new DomainObjectContainerWrapperFactory();
>     }
> }
> This ensures that any created objects get the junit viewer wrapped container.
> [1] http://isis.markmail.org/message/yqaxwv62n7fhbqqi

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira