I am developing a new datastore provider using NeoEmf.
I have based my code on the cassandra code as it seems to be the closest to what I want to provide.
I have some basic functionality coded and would like to run some tests to try to understand more how the implementation should work.
However, when I try to run the tests I am getting an exception:
Code:
...
Caused by: java.lang.ClassNotFoundException: Could not load requested class : neoemf_experimental
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
Which I assume means that hibernate can not locate my datastore implementation.
My hibernate.properties looks like this:
Code:
hibernate.ogm.datastore.provider=neoemf_experimental
But I am guessing I am missing a pice of glue to tie this to my NeoEmf class:
Code:
public class NeoEmf implements DatastoreConfiguration<GlobalContext<?, ?>> {
/**
* Short name of this data store provider.
*
* @see OgmProperties#DATASTORE_PROVIDER
*/
public static final String DATASTORE_PROVIDER_NAME = "NEOEMF_EXPERIMENTAL";
@Override
public GlobalContext<?, ?> getConfigurationBuilder(ConfigurationContext context) {
return GenericOptionModel.createGlobalContext( context );
}
}
Any pointers are welcome.