2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.persistence
.dao
.hibernate
.view
;
12 import static org
.junit
.Assert
.assertNotNull
;
14 import java
.io
.FileNotFoundException
;
16 import org
.joda
.time
.DateTime
;
17 import org
.junit
.Before
;
18 import org
.junit
.Test
;
19 import org
.unitils
.dbunit
.annotation
.DataSet
;
20 import org
.unitils
.spring
.annotation
.SpringBeanByType
;
22 import eu
.etaxonomy
.cdm
.model
.view
.AuditEvent
;
23 import eu
.etaxonomy
.cdm
.persistence
.view
.IAuditEventDao
;
24 import eu
.etaxonomy
.cdm
.test
.integration
.CdmTransactionalIntegrationTest
;
31 public class AuditEventDaoTest
extends CdmTransactionalIntegrationTest
{
34 private IAuditEventDao auditEventDao
;
36 private DateTime dateTime
;
40 dateTime
= new DateTime();
45 * Test method for {@link eu.etaxonomy.cdm.persistence.dao.hibernate.view.AuditEventDao#findByDate()}.
49 public void testFindByDate() {
50 AuditEvent auditEvent
= auditEventDao
.findByDate(dateTime
);
51 assertNotNull(auditEvent
);
56 * @see eu.etaxonomy.cdm.test.integration.CdmIntegrationTest#createTestData()
59 public void createTestDataSet() throws FileNotFoundException
{
60 // TODO Auto-generated method stub