From 2214b634e6af7e973cd938bd1a767d8def9eef97 Mon Sep 17 00:00:00 2001 From: Michael Hunger Date: Fri, 3 Oct 2014 03:29:55 +0200 Subject: [PATCH] DATAGRAPH-517 - Update To Neo4j 2.1.5 --- pom.xml | 9 ++++++++- .../neo4j/illegal/aspects/index1/IllegalIndex1Tests.java | 5 +++-- .../neo4j/illegal/aspects/index2/IllegalIndex2Tests.java | 5 +++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index c47d806f1..180442e31 100644 --- a/pom.xml +++ b/pom.xml @@ -40,7 +40,7 @@ 2.1.5 - 0.13-neo4j-2.0.1 + 0.13-neo4j-2.1.4 2.0.1 @@ -173,6 +173,13 @@ Spring http://repo.spring.io/libs-snapshot + + neo4j + http://m2.neo4j.org/content/repositories/releases + + false + + geotools http://download.osgeo.org/webdav/geotools diff --git a/spring-data-neo4j-aspects/src/test/java/org/springframework/data/neo4j/illegal/aspects/index1/IllegalIndex1Tests.java b/spring-data-neo4j-aspects/src/test/java/org/springframework/data/neo4j/illegal/aspects/index1/IllegalIndex1Tests.java index dd447d562..a8b25eeb1 100644 --- a/spring-data-neo4j-aspects/src/test/java/org/springframework/data/neo4j/illegal/aspects/index1/IllegalIndex1Tests.java +++ b/spring-data-neo4j-aspects/src/test/java/org/springframework/data/neo4j/illegal/aspects/index1/IllegalIndex1Tests.java @@ -16,7 +16,6 @@ package org.springframework.data.neo4j.illegal.aspects.index1; -import org.apache.commons.lang.exception.ExceptionUtils; import org.junit.Test; import org.springframework.beans.factory.BeanCreationException; import org.springframework.context.support.ClassPathXmlApplicationContext; @@ -144,7 +143,9 @@ public class IllegalIndex1Tests extends EntityTestBase { appCtx.getEnvironment().setActiveProfiles( entityUnderTest.getSimpleName() ); appCtx.refresh(); } catch (BeanCreationException bce) { - throw ExceptionUtils.getRootCause(bce); + Throwable ex=bce; + while (ex.getCause() != null) ex = ex.getCause(); + throw ex; } } diff --git a/spring-data-neo4j-aspects/src/test/java/org/springframework/data/neo4j/illegal/aspects/index2/IllegalIndex2Tests.java b/spring-data-neo4j-aspects/src/test/java/org/springframework/data/neo4j/illegal/aspects/index2/IllegalIndex2Tests.java index 408c3a718..416c273c8 100644 --- a/spring-data-neo4j-aspects/src/test/java/org/springframework/data/neo4j/illegal/aspects/index2/IllegalIndex2Tests.java +++ b/spring-data-neo4j-aspects/src/test/java/org/springframework/data/neo4j/illegal/aspects/index2/IllegalIndex2Tests.java @@ -16,7 +16,6 @@ package org.springframework.data.neo4j.illegal.aspects.index2; -import org.apache.commons.lang.exception.ExceptionUtils; import org.junit.Test; import org.springframework.beans.factory.BeanCreationException; import org.springframework.context.support.ClassPathXmlApplicationContext; @@ -72,7 +71,9 @@ public class IllegalIndex2Tests { appCtx.getEnvironment().setActiveProfiles( entityUnderTest.getSimpleName() ); appCtx.refresh(); } catch (BeanCreationException bce) { - throw ExceptionUtils.getRootCause(bce); + Throwable ex=bce; + while (ex.getCause() != null) ex = ex.getCause(); + throw ex; } }