From e3671a741b70a07b37e6d151f695bd9c07df5373 Mon Sep 17 00:00:00 2001 From: Dirk Mahler Date: Tue, 21 Apr 2015 20:36:44 +0200 Subject: [PATCH] #148 fixed test assertion --- .../com/buschmais/xo/neo4j/test/mapping/UnmappedTypesTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neo4j/src/test/java/com/buschmais/xo/neo4j/test/mapping/UnmappedTypesTest.java b/neo4j/src/test/java/com/buschmais/xo/neo4j/test/mapping/UnmappedTypesTest.java index 7039882ae..9deab3b0d 100644 --- a/neo4j/src/test/java/com/buschmais/xo/neo4j/test/mapping/UnmappedTypesTest.java +++ b/neo4j/src/test/java/com/buschmais/xo/neo4j/test/mapping/UnmappedTypesTest.java @@ -8,6 +8,7 @@ import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.neo4j.graphdb.Node; +import org.neo4j.graphdb.Relationship; import java.net.URISyntaxException; import java.util.Collection; @@ -38,7 +39,7 @@ public void query() { CompositeObject x = compositeRowObject.get("x", CompositeObject.class); assertThat(x.getDelegate(), instanceOf(Node.class)); CompositeObject y = compositeRowObject.get("y", CompositeObject.class); - assertThat(y.getDelegate(), instanceOf(Node.class)); + assertThat(y.getDelegate(), instanceOf(Relationship.class)); CompositeObject z = compositeRowObject.get("z", CompositeObject.class); assertThat(z.getDelegate(), instanceOf(Node.class)); xoManager.currentTransaction().commit();