I tried deleteAll() on another Object Type, which seems to work fine. On Sat, May 9, 2015 at 6:43 AM, JMill <[email protected]> wrote:
> Test is already running inside a transaction (save() works fine). > > On Fri, May 8, 2015 at 2:28 AM, Sumit Gupta <[email protected]> wrote: > >> can you try using deleteAll within a transaction and commit the >> transaction after method finishes sucessfully? >> >> Thanks, >> Sumit >> >> >> On Friday, 8 May 2015 00:22:00 UTC+5:30, [email protected] wrote: >>> >>> I should add, I am using a neo4j server as opposed to the embedded >>> database. >>> >>> On Thursday, May 7, 2015 at 5:27:21 PM UTC+1, [email protected] >>> wrote: >>>> >>>> Hi, >>>> >>>> Querying database immediately after calling "GraphRepository.deleteAll" >>>> seems to return positive. Any suggestions why this could be failing? >>>> Perhaps this is a bug? >>>> >>>> Spring Data Neo4j Version = 3.3.0.RELEASE >>>> Neo4j Community Version = 2.0.2 >>>> >>>> Test Case >>>> >>>> @Test >>>> >>>> public void testDeleteAll() { >>>> >>>> accountService.deleteAll(); >>>> >>>> >>>> Set<Long> ids = AppUtil.newHashSetInstance(); >>>> >>>> ids.add(new Long(1)); >>>> >>>> Set<AccountGraph> all = accountService.findAllAccountWithIds(ids); >>>> >>>> >>>> for(AccountGraph graph: all){ >>>> >>>> System.out.println(graph); >>>> >>>> } >>>> >>>> assertEquals(0,all.size()); <-- this fails >>>> >>>> } >>>> >>> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Neo4j" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/neo4j/SFnYO82447E/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
