Package org.jboss.resteasy.examples.contacts.core

Examples of org.jboss.resteasy.examples.contacts.core.Contact


        1L));
  }

  @Test
  public void testInsertContact() {
    Contact newContact = new Contact();
    newContact.setEmail("newcontact@yahoo.com");
    newContact.setName(CONTACT_NAME_3);
    newContact.setTelephone("3213123123");
    Contact contact = contactDao.findContactByName(CONTACT_NAME_3);
    Assert.assertNull(contact);
    contactDao.addUpdateContact(newContact);
    contact = contactDao.findContactByName(CONTACT_NAME_3);
    Assert.assertNotNull(contact);
  }
View Full Code Here


    Assert.assertNotNull(contact);
  }

  @Test
  public void testDeleteContact() {
    Contact newContact = new Contact();
    newContact.setEmail("newcontact2@yahoo.com");
    newContact.setName(CONTACT_NAME_4);
    newContact.setTelephone("3213123134");
    Contact contact = contactDao.findContactByName(CONTACT_NAME_4);
    Assert.assertNull(contact);
    contactDao.addUpdateContact(newContact);
    contact = contactDao.findContactByName(CONTACT_NAME_4);
    Assert.assertNotNull(contact);
    contactDao.deleteContact(contact);
View Full Code Here

TOP

Related Classes of org.jboss.resteasy.examples.contacts.core.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.