Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-14611

Create a Drive test feature

    XMLWordPrintable

    Details

    • Type: User story
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: QualifiedToSchedule
    • Component/s: Nuxeo Drive

      Description

      In order to factorize all tests annotations, typically:

      @RunWith(FeaturesRunner.class)
      @Features({ TransactionalFeature.class, PlatformFeature.class })
      @RepositoryConfig(repositoryName = "default", init = DefaultRepositoryInit.class, cleanup = Granularity.METHOD)
      @Deploy({ "org.nuxeo.ecm.platform.userworkspace.types",
              "org.nuxeo.ecm.platform.userworkspace.api",
              "org.nuxeo.ecm.platform.userworkspace.core", "org.nuxeo.drive.core" })
      public class TestNuxeoDriveManager {
      ...
      }
      
      @RunWith(FeaturesRunner.class)
      @Features(EmbeddedAutomationServerFeature.class)
      @RepositoryConfig(cleanup = Granularity.METHOD)
      @Deploy({ "org.nuxeo.drive.core", "org.nuxeo.drive.operations" })
      @Jetty(port = 18080)
      public class TestGetChangeSummary {
      ...
      }
      
      @RunWith(FeaturesRunner.class)
      @Features(EmbeddedAutomationServerFeature.class)
      @RepositoryConfig(cleanup = Granularity.METHOD)
      @Deploy({ "org.nuxeo.drive.core", "org.nuxeo.drive.operations" })
      @LocalDeploy("org.nuxeo.drive.operations:test-other-repository-config.xml")
      @Jetty(port = 18080)
      public class TestGetChangeSummaryMultiRepo {
      ...
      }
      

      This will ease maintenant and reduce the kind of effort needed for NXP-14367

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: