Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-149

Update IsisTestRunner to accept annotations to override Persister and Authenticator

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.1.2-incubating
    • 0.2.0-incubating
    • Core
    • None

    Description

      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

      Attachments

        Activity

          People

            kevin-m Kevin Meyer
            kevin-m Kevin Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: