java - Build project with maven without Neo4j running -


i have project set using spring-data-neo4j. we're trying have our build process lean possible i'm not able build project unless neo4j running. if it's not running application context fails load because cannot connect graph. don't have neo4j unit tests set skip loading neo4j information entirely don't see way of lazy loading neo4j:repositories , neo4j:config beans. there way of doing this? there workaround?

here's spring-data-neo4j setup:

<neo4j:repositories base-package="com.xxx.graph.repository" /> <neo4j:config graphdatabaseservice="graphdatabaseservice" base-package="com.xxx.domain" /> <bean id="graphdatabaseservice"      class="org.springframework.data.neo4j.rest.springrestgraphdatabase"     scope="singleton">     <constructor-arg value="${graph.db.url}" /> </bean>  

in end decided have our unit tests import entirely separate context files. have project-context.xml file imports project-neo4j.xml file real setup, , separate project-test-context.xml use our unit tests. project-test-context.xml has nothing neo4j in it.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -