Search in sources :

Example 1 with EventNotificationHist

use of org.ovirt.engine.core.common.businessentities.EventNotificationHist in project ovirt-engine by oVirt.

the class EventDaoTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    dao = dbFacade.getEventDao();
    existingSubscriber = new Guid("9bf7c640-b620-456f-a550-0348f366544a");
    newSubscriber = new Guid("9bf7c640-b620-456f-a550-0348f366544b");
    newSubscription = new EventSubscriber();
    newSubscription.setSubscriberId(newSubscriber);
    newSubscription.setEventNotificationMethod(EventNotificationMethod.SMTP);
    newSubscription.setEventUpName("TestRun");
    newSubscription.setTagName("farkle");
    newHistory = new EventNotificationHist();
    newHistory.setAuditLogId(FREE_AUDIT_LOG_ID);
    newHistory.setEventName("Failure");
    newHistory.setMethodType("Email");
    newHistory.setReason("Dunno");
    newHistory.setSentAt(new Date());
    newHistory.setStatus(false);
    newHistory.setSubscriberId(existingSubscriber);
}
Also used : EventSubscriber(org.ovirt.engine.core.common.businessentities.EventSubscriber) EventNotificationHist(org.ovirt.engine.core.common.businessentities.EventNotificationHist) Guid(org.ovirt.engine.core.compat.Guid) Date(java.util.Date)

Aggregations

Date (java.util.Date)1 EventNotificationHist (org.ovirt.engine.core.common.businessentities.EventNotificationHist)1 EventSubscriber (org.ovirt.engine.core.common.businessentities.EventSubscriber)1 Guid (org.ovirt.engine.core.compat.Guid)1