Package org.easycassandra.bean.model

Examples of org.easycassandra.bean.model.ShoppingList


        Assert.assertTrue(persistence.insert(getPolianaShoppingList()));
    }

    private ShoppingList getPolianaShoppingList() {
        ShoppingList shopping = new ShoppingList();
        shopping.setDay(new Date());
        shopping.setName("Poliana");
        shopping.setFruits(new LinkedList<String>());
        shopping.getFruits().add("Orange");
        shopping.getFruits().add("beans");
        shopping.getFruits().add("rice");
        return shopping;
    }
View Full Code Here


    /**
     * run the test.
     */
    @Test
    public void retrieveTest() {
        ShoppingList list = persistence.retrieve(getPolianaShoppingList()
                .getName());
        Assert.assertNotNull(list);
    }
View Full Code Here

    /**
     * run the test.
     */
    @Test
    public void removeTest() {
        ShoppingList list = persistence.retrieve(getPolianaShoppingList()
                .getName());
        persistence.remove(list);
        list = persistence.retrieve(getPolianaShoppingList().getName());
        Assert.assertNull(list);
    }
View Full Code Here

TOP

Related Classes of org.easycassandra.bean.model.ShoppingList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.