01-25-2017 05:54 AM
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.
01-25-2017 06:05 AM
For this you can use a simple @Before
that checks assumeTrue(coreFeature.getStorageConfiguration().isDBSMongoDB())
, no need for extra changes to @RepositoryConfig
01-25-2017 05:57 AM
BTW I cannot create a NXP for the PR, but the commit is ready.
01-25-2017 06:05 AM
For this you can use a simple @Before
that checks assumeTrue(coreFeature.getStorageConfiguration().isDBSMongoDB())
, no need for extra changes to @RepositoryConfig
01-25-2017 06:08 AM
The idea was to avoid the Nuxeo startup whenever possible. But ok.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.