Package org.openmeetings.app.data.user.dao

Examples of org.openmeetings.app.data.user.dao.UserContactsDaoImpl


  }
 
  final public void testUserContactsDaoImpl() throws Exception  {
   
    // Get instance
    UserContactsDaoImpl  contactDaoImpl = UserContactsDaoImpl.getInstance();
   
    assertNotNull("Cann't access to contacts dao implimentation", contactDaoImpl);
    Long id = contactDaoImpl.addUserContact(1L, 1L, false, "");
    assertTrue("New contact cann't added", id > 0);
    UserContacts userContact = contactDaoImpl.getUserContacts(id);

    assertTrue("Contact should be the same with user", userContact.getContact().equals(Usermanagement.getInstance().getUserById(id)));
   
  }
View Full Code Here

TOP

Related Classes of org.openmeetings.app.data.user.dao.UserContactsDaoImpl

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.