Package org.easycassandra.bean.model

Examples of org.easycassandra.bean.model.Contact


    /**
     * run the test.
     */
    @Test
    public void insertTest() {
        Contact contacts = getContact();
        Assert.assertTrue(persistence.insert(contacts));
    }
View Full Code Here


        Contact contacts = getContact();
        Assert.assertTrue(persistence.insert(contacts));
    }

    private Contact getContact() {
        Contact contacts = new Contact();
        contacts.setName("Shrek ");
        contacts.setCyte("far far away");
        contacts.setEmails(new HashSet<String>());
        contacts.getEmails().add("shreck@shrek.org");
        contacts.getEmails().add("shreck@farfaraway.far");
        return contacts;
    }
View Full Code Here

    /**
     * run the test.
     */
    @Test
    public void retrieveTest() {
        Contact contact = persistence.retrieve(getContact().getName());
        Assert.assertNotNull(contact);

    }
View Full Code Here

TOP

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

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.