@SuppressWarnings("unchecked") @Test @Transactional public void testQueryVariableRelationshipSingleResult() throws Exception { final Collection<Map<String, Object>> result = IteratorUtil.asCollection(michael.getOtherTeamMemberData()); assertThat( result, hasItems( testTeam.simpleRowFor(testTeam.emil, "member"), testTeam.simpleRowFor(testTeam.david, "member"))); }
@Before public void setUp() throws Exception { testTeam = new TestTeam(neo4jTemplate); testTeam.createSDGTeam(); michael = testTeam.michael; }