ref #6089 Remove failing irrelevant test
[cdmlib.git] / cdmlib-persistence / src / test / java / eu / etaxonomy / cdm / persistence / dao / hibernate / view / AuditEventDaoTest.java
1 /**
2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9
10 package eu.etaxonomy.cdm.persistence.dao.hibernate.view;
11
12 import static org.junit.Assert.assertNotNull;
13
14 import java.io.FileNotFoundException;
15
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;
21
22 import eu.etaxonomy.cdm.model.view.AuditEvent;
23 import eu.etaxonomy.cdm.persistence.view.IAuditEventDao;
24 import eu.etaxonomy.cdm.test.integration.CdmTransactionalIntegrationTest;
25
26 /**
27 * @author a.mueller
28 * @author ben.clark
29 *
30 */
31 public class AuditEventDaoTest extends CdmTransactionalIntegrationTest {
32
33 @SpringBeanByType
34 private IAuditEventDao auditEventDao;
35
36 private DateTime dateTime;
37
38 @Before
39 public void setUp() {
40 dateTime = new DateTime();
41 }
42
43
44 /**
45 * Test method for {@link eu.etaxonomy.cdm.persistence.dao.hibernate.view.AuditEventDao#findByDate()}.
46 */
47 @Test
48 @DataSet
49 public void testFindByDate() {
50 AuditEvent auditEvent = auditEventDao.findByDate(dateTime);
51 assertNotNull(auditEvent);
52 }
53
54
55 /* (non-Javadoc)
56 * @see eu.etaxonomy.cdm.test.integration.CdmIntegrationTest#createTestData()
57 */
58 @Override
59 public void createTestDataSet() throws FileNotFoundException {
60 // TODO Auto-generated method stub
61
62 }
63 }