|
Hi one question, I have cloned the project, executed the tests and starting to see how to add Fongo support. I have been debugging a test to see how I should write one test and also how I could reuse the already written tests. I have seen that DatastoreProvider is got using next line of GridDialectInitiator:
@Override
public GridDialect initiateService(Map configurationValues, ServiceRegistryImplementor registry) {
DatastoreProvider datastore = registry.getService( DatastoreProvider.class );
In case of executing MongoDB test the DatastoreProvider instatiated is the MongoDB. Is it possible that this information (during tests ) is from classpath like an spi? I mean because MongoDBDatastoreProvider is on classpath then thi sis the instantiated one.
If it is the case then we will have a problem on reusing tests or even creating Fongo class inside same project, because then there will be two instances on classpath.
|