Package org.openmeetings.test.dao

Source Code of org.openmeetings.test.dao.AppointmentReminderTypDaoImplTest

package org.openmeetings.test.dao;

import org.openmeetings.app.data.calendar.daos.AppointmentReminderTypDaoImpl;
import org.openmeetings.app.persistence.beans.calendar.AppointmentReminderTyps;
import org.openmeetings.test.dao.base.AbstractTestCase;

public class AppointmentReminderTypDaoImplTest extends AbstractTestCase {
 
  public AppointmentReminderTypDaoImplTest(String name) {
    super(name);
  }

  final public void testAppointmentReminderTypDaoImpl() throws Exception {
   
    Long id = AppointmentReminderTypDaoImpl.getInstance().addAppointmentReminderTyps(1L, "Reminder", "comment");
    assertNotNull("Cann't add Reminder Typ", id);
   
    AppointmentReminderTyps reminderTyps =   AppointmentReminderTypDaoImpl.getInstance().getAppointmentReminderTypById(id)
    assertNotNull("Cann't get Reminder Typ", reminderTyps);
   
    id = AppointmentReminderTypDaoImpl.getInstance().deleteAppointmentReminderTyp(id);
    assertNotNull("Cann't delete Reminder Typ", id);
  }
}
TOP

Related Classes of org.openmeetings.test.dao.AppointmentReminderTypDaoImplTest

TOP
Copyright © 2018 www.massapi.com. 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.