[Feature] Require a specific repository in CoreFeature

Hello,

Someone might need to run a test on a specific repository, for example when queries are executed using MongoClient. Otherwise the test should be ignored.

Proposal : add a “require” attribute to @RepositoryConfig.

@RepositoryConfig(require = StorageConfiguration.CORE_MONGODB)

Using a MongoDB core the test would run as expected, otherwise it would be ignored.

0 votes

1 answers

907 views

ANSWER

BTW I cannot create a NXP for the PR, but the commit is ready.
01/25/2017



For this you can use a simple @Before that checks assumeTrue(coreFeature.getStorageConfiguration().isDBSMongoDB()), no need for extra changes to @RepositoryConfig

0 votes



The idea was to avoid the Nuxeo startup whenever possible. But ok.
01/25/2017