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.1.2-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