From 6dd353f9c915247fd2cbb5e05101ca7ad0a47f47 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Thu, 13 Mar 2014 17:24:58 +0100 Subject: [PATCH] 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 --- .../data/rest/webmvc/neo4j/Neo4jWebTests.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/neo4j/Neo4jWebTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/neo4j/Neo4jWebTests.java index bc726e18e..0ac40e07e 100644 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/neo4j/Neo4jWebTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/neo4j/Neo4jWebTests.java @@ -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;