Uploaded image for project: 'Rya'
  1. Rya
  2. RYA-353

Convert Mongo tests to IT

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.11
    • None
    • build
    • None

    Description

      RyaMongoDbSailFactoryTest, PcjDocumentsIntegrationTest, PcjDocumentsWithMockTest, MongoPcjIntegrationTest, MongoPcjDocumentsTest need to be renamed to be IT's.

      The goal is to prevent any embedded Mongo DB via MongoClient from being spun up during Unit Testing.

      If a test requires interaction with MongoDB, it is by definition an Integration Test and should be suffixed with IT.

      Update any mongo unit tests that don't require MongoDB to use Mockito where possible.

      Once fixed, add a checkstyle check to enforce this policy.

      Attachments

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

              Unassigned Unassigned
              jdasch Jeff Dasch
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: