[
https://issues.apache.org/jira/browse/RYA-353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jeff Dasch updated RYA-353:
---------------------------
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.
was:
{{MongoTestBase}} and {{MongoITBase}} are very similar. Consolidate
functionality into {{MongoITBase}} and delete {{MongoTestBase}}.
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.
> Convert Mongo tests to IT
> -------------------------
>
> Key: RYA-353
> URL: https://issues.apache.org/jira/browse/RYA-353
> Project: Rya
> Issue Type: Improvement
> Components: build
> Affects Versions: 3.2.11
> Reporter: Jeff Dasch
> Priority: Major
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)