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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user