Hello, 

I am trying to delete items using the Java client, but for some reason, the 
data is still there when I try to get it out later. 

I have posted the relevant parts of the Java Class performing the deletion 
here: https://gist.github.com/joachimhs/5171629

The following unit test fails on the last assertion: 

    @Test
    public void testTreeMenu() throws InterruptedException {
        newEnv.getTreeMenuDao().persistTreeMenu(new 
BasicStatistics("EurekaJAgent:Memory:Heap:Used %", "Account Name", "Y"));
        
        Statistics statOne = 
newEnv.getTreeMenuDao().getTreeMenu("EurekaJAgent:Memory:Heap:Used %", "Account 
Name");
        
        Assert.assertNotNull(statOne);
        Assert.assertEquals("EurekaJAgent:Memory:Heap:Used %", 
statOne.getGuiPath());
        Assert.assertEquals("Account Name", statOne.getAccountName());
        Assert.assertEquals("Y", statOne.getNodeLive());
        
        newEnv.getTreeMenuDao().deleteTreeMenu("EurekaJAgent:Memory:Heap:Used 
%", "Account Name");
        
        Thread.sleep(550);
        Statistics deletedStatOne = 
newEnv.getTreeMenuDao().getTreeMenu("EurekaJAgent:Memory:Heap:Used %", "Account 
Name");
        
        Assert.assertNull(deletedStatOne);
    }

Med Vennlig Hilsen | Very Best Regards,

Joachim Haagen Skeie
[email protected]
http://haagen-software.no
+47 4141 5805

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to