Project

General

Profile

Download (1.6 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
 * Note by AM: in the meanwhile it it used by ConcurrentSessionTest which is part of the mvn build.
29
 *
30
 * @author n.hoffmann
31
 * @since 25.03.2009
32
 */
33
@Ignore
34
public class TestConversationEnabled implements IConversationEnabled {
35

    
36
    private static final Logger logger = Logger.getLogger(TestConversationEnabled.class);
37

    
38
//	private ConversationHolder conversationHolder;
39

    
40
	@Override
41
    public ConversationHolder getConversationHolder() {
42
		return null;
43
	}
44

    
45
	@Override
46
    public void update(CdmDataChangeMap changeEvents) {
47
		Collection<CdmDataChangeEvent> events = changeEvents.getAllEvents();
48
		for(CdmDataChangeEvent event : events){
49
			logger.warn("CdmCrudEvent fired: " + event.getEventType() + " : " + event.getEntity());
50
		}
51
	}
52
}
(3-3/6)