Project

General

Profile

Download (1.78 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 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.test.function;
11

    
12
import java.util.Collection;
13

    
14
import org.apache.log4j.Logger;
15
import org.junit.Ignore;
16

    
17
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
18
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
19
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeEvent;
20
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
21

    
22
/**
23
 * <h2>NOTE</h2>
24
 * This is a test for sole development purposes, it is not
25
 * touched by mvn test since it is not matching the "\/**\/*Test" pattern,
26
 * but it should be annotate with @Ignore when running the project a s junit suite in eclipse
27
 *
28
 * @author n.hoffmann
29
 * @since 25.03.2009
30
 * @version 1.0
31
 */
32
@Ignore
33
public class TestConversationEnabled implements IConversationEnabled {
34
	private static final Logger logger = Logger
35
			.getLogger(TestConversationEnabled.class);
36

    
37
	ConversationHolder conversationHolder;
38

    
39
	/* (non-Javadoc)
40
	 * @see eu.etaxonomy.cdm.api.conversation.IConversationEnabled#getConversationHolder()
41
	 */
42
	public ConversationHolder getConversationHolder() {
43
		// TODO Auto-generated method stub
44
		return null;
45
	}
46

    
47

    
48
	/* (non-Javadoc)
49
	 * @see eu.etaxonomy.cdm.persistence.hibernate.ICdmPostDataChangeObserver#update(eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap)
50
	 */
51
	public void update(CdmDataChangeMap changeEvents) {
52
		Collection<CdmDataChangeEvent> events = changeEvents.getAllEvents();
53
		for(CdmDataChangeEvent event : events){
54
			logger.warn("CdmCrudEvent fired: " + event.getEventType() + " : " + event.getEntity());
55
		}
56
	}
57
}
(5-5/9)