DATAREST-258 - Mitigate changes in Spring Data Neo4j 3.0.1.

We now explicitly set a base backage in the Neo4jConfiguration to make sure, the domain classes get added to the MappingContext upfront. Filed DATAGRAPH-448 [0] for some reasonable defaulting going forward.

[0] https://jira.spring.io/browse/DATAGRAPH-448
This commit is contained in:
Oliver Gierke
2014-03-13 17:24:58 +01:00
parent 05fa30abc1
commit 6dd353f9c9

View File

@@ -48,10 +48,15 @@ public class Neo4jWebTests extends AbstractWebIntegrationTests {
@EnableTransactionManagement
static class TestConfig extends Neo4jConfiguration {
public TestConfig() {
setBasePackage(Neo4jWebTests.class.getPackage().getName());
}
@Bean(destroyMethod = "shutdown")
public GraphDatabaseService graphDatabaseService() {
return new GraphDatabaseFactory().newEmbeddedDatabase("target/graphdb");
}
}
@Autowired TestDataPopulator populator;